[Issue 513] New: using struct initializer on static array crashes the compiler

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 15 03:55:18 PST 2006


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

           Summary: using struct initializer on static array crashes the
                    compiler
           Product: D
           Version: 0.174
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: mslenc at gmail.com


==== case1.d ====
void foo() {
    int[1] barbar = { 1 };
}

==== case2.d ====
int[1] barbar = { 1 };


>dmd case1.d
Assertion failure: '0' on line 219 in file 'init.c'

abnormal program termination

>dmd case2.d
dmd.exe has encountered a problem and needs to close. We are sorry for the
inconvenience.

in some recent previous version (not sure which one, though), case2 correctly
reported what the error is, and case1 still crashed.


-- 




More information about the Digitalmars-d-bugs mailing list