[Issue 748] New: internal error with mixed static / dynamic array

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 25 18:33:29 PST 2006


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

           Summary: internal error with mixed static / dynamic array
           Product: D
           Version: 0.178
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: wbaxter at gmail.com


This code is incorrect but it shouldn't cause an internal compiler error.

void main()
{
    int[2][] a;
    a ~= [1,2];
    // should be  a ~= [[1,2]];
}

I get: Internal error: ..\ztc\cod1.c 2526


-- 



More information about the Digitalmars-d-bugs mailing list