Bug 9892 – [ICE] forward reference in enum declaration members causes compiler segfault

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-04-06T11:20:00Z
Last change time
2013-04-10T22:03:46Z
Keywords
ice
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2013-04-06T11:20:26Z
Test case: enum { a = b, //Segfault! b } void main() {}
Comment #1 by andrej.mitrovich — 2013-04-06T11:21:54Z
This is also an accepts-invalid, right? (if it compiled).
Comment #2 by k.hara.pg — 2013-04-06T11:36:04Z
(In reply to comment #1) > This is also an accepts-invalid, right? (if it compiled). I think this code should report "forward reference error for 'b'".
Comment #3 by bugzilla — 2013-04-06T13:24:03Z
Comment #4 by github-bugzilla — 2013-04-10T19:53:53Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/edd0a0e5b21a5829c839a6012d658552fac0f4f0 fix Issue 9892 - [ICE] forward reference in enum declaration members causes compiler segfault https://github.com/D-Programming-Language/dmd/commit/af67f438d3eafd2c7fb1ffe96b8980611cec176d Merge pull request #1855 from WalterBright/fix9892 fix Issue 9892 - [ICE] forward reference in enum declaration members cau...
Comment #5 by github-bugzilla — 2013-04-10T22:03:46Z