<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - libc++ iostream's bad() member function is returning true, always"
href="http://llvm.org/bugs/show_bug.cgi?id=21581">21581</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>libc++ iostream's bad() member function is returning true, always
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</td>
</tr>
<tr>
<th>Version</th>
<td>3.4
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>santilopez01@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu, mclow.lists@gmail.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=13352" name="attach_13352" title="Source code plus binaries">attachment 13352</a> <a href="attachment.cgi?id=13352&action=edit" title="Source code plus binaries">[details]</a></span>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>