[Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Sep 27 10:25:12 PDT 2006
http://d.puremagic.com/issues/show_bug.cgi?id=381
Summary: array literals are broken; Internal error: ..\ztc\cod1.c
2525
Product: D
Version: 0.167
Platform: PC
OS/Version: Windows
Status: NEW
Keywords: ice-on-valid-code, wrong-code
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: h3r3tic at mat.uni.torun.pl
void foo(...) {
}
void main() {
int[] arr;
arr = [1] ~ 2;
// runtime crash, the length == 1
assert (arr.length == 2);
// compile-time crash
foo([1] ~ 2);
}
--
More information about the Digitalmars-d-bugs
mailing list