[Bug 200] New: Excess precision appears to be precisely defined in D

via D.gnu d.gnu at puremagic.com
Sun Oct 11 01:35:44 PDT 2015


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 at gdcproject.org
          Reporter: ibuclaw at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20151011/a18ea93d/attachment.html>


More information about the D.gnu mailing list