Bug 7639 – Undefined enum AA key crashes compiler

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-03-03T18:00:00Z
Last change time
2012-03-30T21:30:50Z
Keywords
ice
Assigned to
nobody
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2012-03-03T18:00:30Z
// enum str = ""; // comment out to avoid crash void main() { enum foo = [ str : "functions", ]; } When 'auto' is used it doesn't crash the compiler but gives a nice error message: Error: undefined identifier str
Comment #1 by github-bugzilla — 2012-03-30T19:53:33Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/651c27363d05e6038792e0aa717682929385d007 Merge pull request #852 from donc/segfault7639 Fix issue 7639 Undefined enum AA key crashes compiler