<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 --- - Clang crashes on (illegal) reinterpret_cast from float to int if result is written to ostream"
href="http://llvm.org/bugs/show_bug.cgi?id=16680">16680</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clang crashes on (illegal) reinterpret_cast from float to int if result is written to ostream
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.3
</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>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>florian.weber@sfz-bw.de
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=10914" name="attach_10914" title="my commandline">attachment 10914</a> <a href="attachment.cgi?id=10914&action=edit" title="my commandline">[details]</a></span>
my commandline
Clang crashes on the following code after emiting diagnostics, that it is
illegal:
#include <iostream>
int main(){ std::cout << reinterpret_cast<int>(0.0f); }
I did not manage to make it crash without writing the result to std::cout.
I am using libstdc++ 4.8.0 as standard-library.</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>