Bug 2290 – DMD segmentation fault for struct using enum that is defined later

Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2008-08-18T17:39:00Z
Last change time
2015-06-09T01:20:08Z
Keywords
ice-on-valid-code
Assigned to
bugzilla
Creator
benoit
Blocks
340

Comments

Comment #0 by benoit — 2008-08-18T17:39:21Z
struct Style { Access access; } enum Access : ubyte { Read = 0x01 } void main(){ } Moving the enum above the struct make the crash go away. This worked with DMD 2.008 and starting with 2.009 DMD crashes.
Comment #1 by schveiguy — 2008-08-19T09:04:43Z
Added 2215 the last time I tried the D2 Tango port :) *** This bug has been marked as a duplicate of 2215 ***