[Issue 23310] Segfault on switch with global enum

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 29 20:44:24 UTC 2022


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

--- Comment #7 from ryuukk_ <ryuukk.dev at gmail.com> ---
```
enum Test {A, B, C}

Test test = Test.A;

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

without object.d, compiles fine, runs fine

it doesn't initialize the runtime, so the issue must be something else?

The moment i add `object.d` in the folder, the same code segfaults

--


More information about the Digitalmars-d-bugs mailing list