← Back to index
|
Original Bugzilla link
Bug 17603 – "undefined reference to `__dmd_personality_v0'" with -betterC and struct destructors
Status
RESOLVED
Resolution
WORKSFORME
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2017-07-05T13:17:35Z
Last change time
2018-01-27T07:58:11Z
Keywords
betterC, link-failure, pull
Assigned to
No Owner
Creator
Vladimir Panteleev
Comments
Comment #0
by dlang-bugzilla — 2017-07-05T13:17:35Z
//////// test.d /////// __gshared bool dtorRan; struct S { ~this() { dtorRan = true; } void m() {} } extern(C) int main() { dtorRan = false; { S s; s.m(); } assert(dtorRan); return 0; } /////////////////////// results in: cdtor.o:(.eh_frame+0xab): undefined reference to `__dmd_personality_v0' collect2: error: ld returned 1 exit status Error: linker exited with status 1 Pull:
https://github.com/dlang/dmd/pull/6923
Comment #1
by slavo5150 — 2018-01-27T07:58:11Z
This appears to work in the latest release (v2.078.1)
https://run.dlang.io/is/TlRXwA
Closing as WORKSFORME