Bug 7792 – DMD crashes when local enum array containing undefined

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-03-28T22:48:00Z
Last change time
2012-04-23T10:45:35Z
Assigned to
nobody
Creator
kekeniro2

Comments

Comment #0 by kekeniro2 — 2012-03-28T22:48:47Z
void main() { enum a = [ UNDEFINED ]; } DMD crushes after compile error message. D1 does not crush. D2.053 or earlier doesn't, either. Environment: Windows XP SP3 32bit D2.058
Comment #1 by kekeniro2 — 2012-04-23T10:28:16Z
This seems to be fixed in DMD 2.060 head. ( 2.059 still reproduces it. ) Did someone fix it?
Comment #2 by k.hara.pg — 2012-04-23T10:45:35Z
*** This issue has been marked as a duplicate of issue 7906 ***