www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17285] New: Segfault for invalid code (enum without value)

https://issues.dlang.org/show_bug.cgi?id=17285

          Issue ID: 17285
           Summary: Segfault for invalid code (enum without value)
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: kinke gmx.net

Crashes with DMD 2.073.2 (but at least prints an error message before that):

enum SETTINGS_THEME_VARIANT_KEY;

void foo() {
    foreach(key; [SETTINGS_THEME_VARIANT_KEY, 1]) {}
}

--
Mar 29