[Issue 9013] New: Compiler crash with foreach on wrongly defined interval
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 12 18:23:22 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9013
Summary: Compiler crash with foreach on wrongly defined
interval
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2012-11-12 18:23:22 PST ---
void main() {
foreach (i; 0 .. missing)
int[] foo = cast(int[])[i];
}
DMD 2.061alpha prints this and then crashes:
test.d(2): Error: undefined identifier missing
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list