[Issue 22323] Link error for virtual destructor of C++ class in DLL

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 21 19:21:11 UTC 2021


--- Comment #2 from Tim <tim.dlang at t-online.de> ---
(In reply to kinke from comment #1)
> It looks like this might be solvable by removing the condition in
> https://github.com/dlang/dmd/blob/0bbb30aad9a782b4e9a1cbec62704240729d7864/
> src/dmd/clone.d#L1069, where the D compiler only defines it in case the
> regular destructor is defined in D as well. The symbol would most likely
> need to be emitted as a weak definition though to prevent conflicts when
> linking statically etc.

Thanks for the suggestion. It seems to work in a first test.


More information about the Digitalmars-d-bugs mailing list