[Issue 6678] New: optlink crash with large array of structs

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 15 13:00:16 PDT 2011


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

           Summary: optlink crash with large array of structs
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: Optlink
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2011-09-15 12:59:56 PDT ---
This D2 program:


double[7_000_000] array = void;
void main() {}


DMD 2.055 gives an expected error message:
test.d(1): Error: index 7000000 overflow for static array



But this similar program:


struct Foo {
    double x /*= 0*/;
}
Foo[7_000_000] array = void;
void main() {}


Causes a crash of optlink at EIP=004114FC.

-- 
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