<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 --- - incorrect floating point results"
href="http://llvm.org/bugs/show_bug.cgi?id=17988">17988</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>incorrect floating point results
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</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>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>m.pavanakumar@gmail.com
</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=11566" name="attach_11566" title="Extract and type ./compile to compile the code ... Creates executable testBug">attachment 11566</a> <a href="attachment.cgi?id=11566&action=edit" title="Extract and type ./compile to compile the code ... Creates executable testBug">[details]</a></span>
Extract and type ./compile to compile the code ... Creates executable testBug
Attaching a piece of C++ code which gives wrong floating point result with
clang++. But gives correct results in the following compilers (tested)
1) g++ >= 4.2 and 2) icpc > 11.0
Expected output
===============
Flux = 0.57735 0.989578 0.412228 0.412228 1.73147
Actual output from clang
=========================
Flux = 0.508632 0.797979 0.383204 0.383204 1.20769
This bug is reproducible in clang shipped with Xcode 5.0 on OSX Maverics and
clang 3.1-svn. valgrind shows no errors and using -O0 does not help either.</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>