[Issue 17285] New: Segfault for invalid code (enum without value)

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Mar 29 12:47:44 PDT 2017


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 at puremagic.com
          Reporter: kinke at 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]) {}
}

--


More information about the Digitalmars-d-bugs mailing list