[Issue 23310] Segfault on switch with global enum

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 29 20:45:58 UTC 2022


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

--- Comment #8 from ryuukk_ <ryuukk.dev at gmail.com> ---
And following your suggestion

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

__gshared Test test = Test.A;

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

Compiles fine, and run fines even with `object.d`


I'll try to figure out how druntime initializes the tls on windows and copy the
code

--


More information about the Digitalmars-d-bugs mailing list