http://d.puremagic.com/issues/show_bug.cgi?id=3078

           Summary: NaN reported as equal to zero
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: and...@metalanguage.com


import std.math;

void main()
{
    double x[] = new double[1];
    double a = x[0];
    assert(a == 0);
    assert(x[0] == 0);
    assert(isnan(a));
    assert(isnan(x[0]));
}

No assert fails in the code above - and one hour is gone off my life.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to