[LLVMbugs] [Bug 21581] New: libc++ iostream's bad() member function is returning true, always
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Nov 15 10:52:33 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=21581
Bug ID: 21581
Summary: libc++ iostream's bad() member function is returning
true, always
Product: libc++
Version: 3.4
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: santilopez01 at gmail.com
CC: llvmbugs at cs.uiuc.edu, mclow.lists at gmail.com
Classification: Unclassified
Created attachment 13352
--> http://llvm.org/bugs/attachment.cgi?id=13352&action=edit
Source code plus binaries
So I compiled the code I have attached using the following flags:
clang++ -std=c++11 -std=libc++ -Wall -v *.cxx -o out_clang
The program compiles but it throws an exception immediately after I enter some
input (I do a check for istream.bad(), on romans.cxx). The weird thing is that
I also compile the code using g++ front end:
g++ -std=c++11 -Wall *.cxx -o out_gcc
And the code executes fine. I include the source code, plus the aforementioned
binaries I obtained from each call. I have gcc 4.9.2 and clang 3.6.
I checked the code with valgrind and it doesn't complaint on any of the
binaries.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141115/eb7edca8/attachment.html>
More information about the llvm-bugs
mailing list