https://issues.dlang.org/show_bug.cgi?id=23310
--- Comment #8 from ryuukk_ <[email protected]> --- 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 --
