Bug 7906 – [ICE] enum declaration with invalid array literal crashes dmd

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-04-14T00:33:00Z
Last change time
2012-04-23T10:45:35Z
Keywords
ice, pull
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2012-04-14T00:33:01Z
Following invalid code crashes dmd. void main() { enum s = [string.min]; } output: test.d(3): Error: no property 'min' for type 'string' (crash)
Comment #1 by k.hara.pg — 2012-04-14T00:36:03Z
Comment #2 by github-bugzilla — 2012-04-14T01:31:56Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/a157cf83a6593206f421c29cf62b9aef475b3772 fix Issue 7906 - [ICE] enum declaration with invalid array literal crashes dmd https://github.com/D-Programming-Language/dmd/commit/2b41879248b4c17e105b6c897baf8b8ebea0554f Merge pull request #877 from 9rnsr/fix7906 Issue 7906 - [ICE] enum declaration with invalid array literal crashes dmd
Comment #3 by github-bugzilla — 2012-04-14T12:03:49Z
Comment #4 by lovelydear — 2012-04-21T11:51:54Z
I'm pretty sure it's a duplicate, but can't find the other one again.:(
Comment #5 by k.hara.pg — 2012-04-23T10:45:35Z
*** Issue 7792 has been marked as a duplicate of this issue. ***