You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I compile and run this code, I get a segfault. There was no problem with dmd 2.093.1.
importstd.stdio;
classC {
voidfunc() {
writeln("hello world!");
}
voidrun1() {
classC2 {
classC3 {
voidrun3() {
func();
}
}
voidrun2() {
auto c3 = newC3;
c3.run3();
}
}
auto c2 = newC2;
c2.run2();
}
}
voidmain() {
auto c = new C;
c.run1();
}
Windows 10 Pro (64-bit):
$ ldc2-1.23.0-windows-multilib\bin\ldc2 -run test.d
Error: C:\Users\***\AppData\Local\Temp\test-417097a-fa96f5.exe failed with status: -1073741819
Error: program received signal 1073741819
Linux Mint 19.3 (64-bit):
$ ldc2-1.23.0-linux-x86_64/bin/ldc2 -run test.d
Error: /tmp/test-896560f-8a2e3b failed with status: -2
message: Segmentation fault (core dumped)
Error: program received signal 2 (Interrupt)
The text was updated successfully, but these errors were encountered:
kinke
added a commit
to kinke/ldc
that referenced
this issue
Sep 10, 2020
When I compile and run this code, I get a segfault. There was no problem with dmd 2.093.1.
Windows 10 Pro (64-bit):
Linux Mint 19.3 (64-bit):
The text was updated successfully, but these errors were encountered: