[Issue 720] New: bug in array literal parsing with append
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Dec 22 11:51:52 PST 2006
http://d.puremagic.com/issues/show_bug.cgi?id=720
Summary: bug in array literal parsing with append
Product: D
Version: 0.177
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: kevinbealer at gmail.com
The following code causes an assert in dmd -- it seems to have to do with
deducing the type of an array literal. If I assign the array literal to
a variable, then append that to the array, it works.
The error:
dmd -ofmini mini.d
Internal error: ../ztc/cod1.c 2526
The code:
-----
void foo()
{
int[2][] pos;
pos ~= [1, 2];
}
int main(char[][] a)
{
foo();
return 0;
}
-----
Kevin
--
More information about the Digitalmars-d-bugs
mailing list