www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - bug in array literal parsing

I got this:

dmd -ofmini mini.d
Internal error: ../ztc/cod1.c 2526

From this:

-----
void foo()
{
    int[2][] pos;
    pos ~= [1, 2];
}

int main(char[][] a)
{
    foo();
    return 0;
}
-----

Kevin
Dec 21 2006