<html>
<head>
<base href="http://bugzilla.gdcproject.org/" />
</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 - Correctly handle excess FPU precision"
href="http://bugzilla.gdcproject.org/show_bug.cgi?id=159">159</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Correctly handle excess FPU precision
</td>
</tr>
<tr>
<th>Product</th>
<td>GDC
</td>
</tr>
<tr>
<th>Version</th>
<td>development
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>Normal
</td>
</tr>
<tr>
<th>Component</th>
<td>gdc
</td>
</tr>
<tr>
<th>Assignee</th>
<td>ibuclaw@gdcproject.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ibuclaw@gdcproject.org
</td>
</tr></table>
<p>
<div>
<pre>Taken from:
<a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=323">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=323</a>
---
import std.stdio;
void test(double x, double y)
{
double y2 = x + 1.0;
if (y != y2)
writeln("error");
}
void main()
{
immutable double x = .012; // Remove 'immutable', and 'error' is not
printed.
double y = x + 1.0;
test(x, y);
}
---
This is a GCC bug with a front-end fix. It may be a good idea to conform to
this behaviour in D (GDC) too. If not at least because the reference compiler
doesn't appear to optimise aggressively enough to get this problem.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>