[Issue 20208] extern (C++) copy constructor bad mangling for dmd
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Sep 12 15:04:32 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=20208
kinke <kinke at gmx.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kinke at gmx.net
--- Comment #3 from kinke <kinke at gmx.net> ---
We probably have to emit extern(C++) copy ctors as 2 symbols for non-Windows,
both the C1 ('complete object ctor') and the C2 ('base object constructor')
variant. There's even a third one, C3 ('complete object allocating
constructor'). A similar mess as for the C++ dtors.
The testcase in https://github.com/dlang/dmd/pull/9806 needed the C2 one, so I
assumed it would suffice, but it clearly doesn't: https://godbolt.org/z/qD5Tta
--
More information about the Digitalmars-d-bugs
mailing list