[Issue 4463] New: double.init in associative array seems 0.0

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 15 04:24:14 PDT 2010


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

           Summary: double.init in associative array seems 0.0
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: sean at invisibleduck.org
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2010-07-15 04:24:09 PDT ---
With dmd 2.047 this code doesn't assert at runtime (aa[0] has to be nan):


void main() {
    double[int] aa;
    aa[0]++;
    assert(aa[0] == 1.0);
}

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


More information about the Digitalmars-d-bugs mailing list