<html>
<head>
<base href="https://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 --- - Unions containing a double as the first member are sometimes copied incorrectly"
href="https://llvm.org/bugs/show_bug.cgi?id=26791">26791</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Unions containing a double as the first member are sometimes copied incorrectly
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.7
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</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>LLVM Codegen
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jleroy9@bloomberg.net
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=15968" name="attach_15968" title="zip containing C++ code">attachment 15968</a> <a href="attachment.cgi?id=15968&action=edit" title="zip containing C++ code">[details]</a></span>
zip containing C++ code
Unions consisting of a double as the first member with a total size equal to a
double are sometimes copied incorrectly, i.e. as doubles instead of bytes,
flipping the Quiet NaN bit in the process. This happens only with -O2
optimizations and the pentium2 architecture. See top of attached clang_1.cpp
file for compilation command and bottom for output.</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>