[Issue 19101] Miscompilation on extern(C++) overloads with D types

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 30 22:02:25 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=19101

kinke at gmx.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kinke at gmx.net

--- Comment #1 from kinke at gmx.net ---
> The fix: use the full D type for mangling.

Assuming you suggest mangling `module mod; extern(C++) class C {};` as
`mod::C`, that would prevent all interop with external C++ symbols in the root
namespace, as there is no root namespace in D. Likewise, you'd have to have a
huge `std.d` file for the std::* symbols etc.

--


More information about the Digitalmars-d-bugs mailing list