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'".