Bug 10341 – Range case without an associated switch statement crashes DMD

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-12T01:16:00Z
Last change time
2013-06-13T17:34:07Z
Keywords
ice, pull
Assigned to
andrej.mitrovich
Creator
iselix1988+dbugzilla

Comments

Comment #0 by iselix1988+dbugzilla — 2013-06-12T01:16:49Z
Range case sentence at out of switch block crashes dmd compiler by Segmentation fault. See code below: --- void main(){ case 1: .. case 2: // dmd crashes by Segmentation fault } ---
Comment #1 by andrej.mitrovich — 2013-06-12T05:47:53Z
Comment #2 by github-bugzilla — 2013-06-13T02:14:12Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/8e982d8c81d0c4c8689fb55975ce43d22d3191c2 Fix Issue 10341 - ICE on case-range statement without an associated switch statement. https://github.com/D-Programming-Language/dmd/commit/384d833208c0b75de66c932fb2c78f70bdf6c902 Merge pull request #2167 from AndrejMitrovic/Fix10341 Issue 10341 - ICE on case-range statement without an associated switch statement
Comment #3 by k.hara.pg — 2013-06-13T03:31:57Z
I reverted the merged change from master branch. https://github.com/D-Programming-Language/dmd/commit/fbd6c9f8d4b70e07608a85c7aec65c291c2dd84b I didn't understand what was wrong, but the change had caused auto tester failures in Linux platforms frequently. So, I reopen this issue.
Comment #4 by github-bugzilla — 2013-06-13T17:09:16Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/095b58a301fee80eb212631b6a7dd7ce6d158c0b Merge pull request #2167 from AndrejMitrovic/Fix10341 Issue 10341 - ICE on case-range statement without an associated switch statement ----- I confirmed that the change was entirely unrelated to the auto-tester failures. So I re-merge this.