http://d.puremagic.com/issues/show_bug.cgi?id=4564
Summary: ICE on undefined variable in foreach over 0 .. undef Product: D Version: D2 Platform: Other OS/Version: All Status: NEW Keywords: ice-on-invalid-code Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: bra...@puremagic.com --- Comment #0 from Brad Roberts <bra...@puremagic.com> 2010-08-01 15:25:34 PDT --- module test; int main() { foreach(i; 0 .. undef) {} return 0; } foreach.d(4): Error: undefined identifier undef dmd: statement.c:2242: virtual int ForeachRangeStatement::blockExit(): Assertion `0' failed. The code: int ForeachRangeStatement::blockExit() { assert(0); ... more code, but not reachable } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------