digitalmars.D.bugs - [Issue 15576] New: extern(C++) wrong mangling
- via Digitalmars-d-bugs (27/27) Jan 17 2016 https://issues.dlang.org/show_bug.cgi?id=15576
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: nobody puremagic.com Reporter: turkeyman gmail.com 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. --
Jan 17 2016