D.gnu - [Bug 200] New: Excess precision appears to be precisely defined in D
- via D.gnu (34/34) Oct 11 2015 Date: Sun, 11 Oct 2015 09:35:43 +0100
Date: Sun, 11 Oct 2015 09:35:43 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" http://bugzilla.gdcproject.org/show_bug.cgi?id=200 Bug ID: 200 Summary: Excess precision appears to be precisely defined in D Product: GDC Version: development Hardware: All OS: All Status: NEW Severity: normal Priority: Normal Component: gdc Assignee: ibuclaw gdcproject.org Reporter: ibuclaw gdcproject.org Though it's not documented anywhere (as far as I can see), we should not be tripping over GCC bug 323, and yet we have this problem with the optimizer. --- import core.stdc.stdio; void test(double x, double y) { const double y2 = x + 1.0; assert(y == y2); } void main() { const double x = .012; const double y = x + 1.0; test(x, y); } -- You are receiving this mail because: You are watching all bug changes.
Oct 11 2015