← Back to index
|
Original Bugzilla link
Bug 9013 – Compiler crash with foreach on wrongly defined interval
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-11-12T18:23:00Z
Last change time
2012-11-13T14:59:49Z
Keywords
ice, pull
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0
by bearophile_hugs — 2012-11-12T18:23:22Z
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
Comment #1
by k.hara.pg — 2012-11-13T04:19:45Z
https://github.com/D-Programming-Language/dmd/pull/1281
Comment #2
by github-bugzilla — 2012-11-13T14:40:57Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/2dad60f45661fdaa0a8c226019bc6bfb2167b6d9
fix Issue 9013 - Compiler crash with foreach on wrongly defined interval
https://github.com/D-Programming-Language/dmd/commit/bd247478dfa1b5a8b94a5a88701fea891fd32fbb
Merge pull request #1281 from 9rnsr/fix9013 Issue 9013 - Compiler crash with foreach on wrongly defined interval