Bug 1800 – Compiler crash on enums nested in structs

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
All
Creation time
2008-01-23T04:58:00Z
Last change time
2015-06-09T01:14:30Z
Keywords
ice-on-valid-code
Assigned to
bugzilla
Creator
sludwig

Comments

Comment #0 by sludwig — 2008-01-23T04:58:29Z
If a nested enum with the type of the containing struct is declared, the compiler crashes: struct S { enum S some_constant = {0}; int member; }
Comment #1 by gide — 2008-01-26T10:38:21Z
*** Bug 1803 has been marked as a duplicate of this bug. ***
Comment #2 by spam — 2008-01-27T04:54:47Z
*** Bug 1808 has been marked as a duplicate of this bug. ***
Comment #3 by spam — 2008-01-27T04:56:34Z
this one came up a couple of times now and the number of duplicates shows how often people stumble over it.
Comment #4 by bugzilla — 2008-03-07T00:22:59Z
Fixed dmd 2.012