[Issue 16289] New: no extern(C++) mangling for unsigned long
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Jul 18 05:06:57 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16289
Issue ID: 16289
Summary: no extern(C++) mangling for unsigned long
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: code at dawg.eu
The C++ mangler conflates mangling for unsigned, unsigned long, and unsigned
long long depending on the target architecture. Those are separate manglings in
C++, independent of their target size.
This leads to several linking problems w/ C++ code, in particular when a size_t
parameter is involved.
We already have some places in cppmangle where we properly handle
Id.__c_long/Id.__c_ulong. This should be extended to size_t parameters in
extern(C++) functions. We might also consider to change the size_t declaration
to exactly match the C++ definition of the used platform.
--
More information about the Digitalmars-d-bugs
mailing list