https://issues.dlang.org/show_bug.cgi?id=15576
Issue ID: 15576
Summary: extern(C++) wrong mangling
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
C++:
namespace ep {
struct Instance {};
Instance *s_pInstance = nullptr;
}
D:
extern (C++, ep) {
struct Instance {}
extern __gshared Instance* s_pInstance;
}
C++ mangles: ?s_pInstance@ep@@3PEAUInstance@1@EA
D mangles: ?s_pInstance@ep@@2PEAUInstance@1@EA
Notice there is a '2' where a '3' should be.
--