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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs