// 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
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