[Issue 22489] C header generation ignores custom mangling
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 27 10:37:50 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22489
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
@MoonlightSentinel created dlang/dmd pull request #13895 "Fix 22489 - dtoh:
Handle custom mangling for functions (and globals)" fixing this issue:
- Fix 22489 - dtoh: Handle custom mangling for functions (and globals)
Explicit mangling provided via `pragma(mangle, "..")` cannot be mapped
to C++. For `extern(C)` function it's possible to emulate the behavior
by replacing the identifier with the custom mangling. This doesn't work
for `extern(C++)` functions, so they are ignored.
The same rationale + solution applies to global variables with custom
mangling.
https://github.com/dlang/dmd/pull/13895
--
More information about the Digitalmars-d-bugs
mailing list