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

          Issue ID: 23310
           Summary: Segfault on switch with global enum
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

The follow code segfaults:

```
enum Test {A, B, C}

Test test = Test.A;

extern(C) void main()
{
    switch(test)
    {
        default:
        break;
    }
}
``` 



DMD: 2.100.1


It works fine with LDC

--

Reply via email to