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: ibuc...@gdcproject.org Reporter: ibuc...@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.