[Issue 23310] Segfault on switch with global enum
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Aug 29 21:42:58 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23310
--- Comment #10 from ryuukk_ <ryuukk.dev at gmail.com> ---
Progress, compiling with `dmd -g -m64 app.d && ./app.exe` (basically adding
-g), now works and get rid of the segfault:
```
import core.stdc.stdio;
enum Test {A, B, C}
Test test = Test.A;
extern(C) void main()
{
switch(test)
{
default:
break;
}
printf("the end");
}
```
So there is a problem somewhere with DMD not doing something important..
--
More information about the Digitalmars-d-bugs
mailing list