[Issue 2829] New: aborted when accessing out of bounds element in a static array constant initialized through struct literal

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 10 01:59:13 PDT 2009


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

           Summary: aborted when accessing out of bounds element in a static
                    array constant initialized through struct literal
           Product: D
           Version: 1.043
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: kamm-removethis at incasoftware.de


struct S { int[3] i; }
const S s = S(5);
const int i = s.i[10];

generates

int[3u] 0x82ee4e0
dmd: expression.c:1352: virtual dinteger_t IntegerExp::toInteger(): Assertion
`0' failed.
Aborted


-- 



More information about the Digitalmars-d-bugs mailing list