Bug 18957 – extern(C++) doesn't mangle 'std' correctly on posix systems

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2018-06-08T05:21:10Z
Last change time
2018-09-16T11:59:48Z
Keywords
C++
Assigned to
No Owner
Creator
Manu

Comments

Comment #0 by turkeyman — 2018-06-08T05:21:10Z
extern (C++, std) { struct test {} } extern (C++) void test(ref const(std.test) t) {} Expect: _Z4testRKNSt4testE Actual: _Z4testRKN3std4testE
Comment #1 by pro.mathias.lang — 2018-06-08T07:31:39Z
Duplicate of Guillaume's https://issues.dlang.org/show_bug.cgi?id=14178 *** This issue has been marked as a duplicate of issue 14178 ***
Comment #2 by github-bugzilla — 2018-06-08T08:44:20Z
Commit pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/4b17e0b1a08b161fb69b3c68dc7b468749181264 Fix issue 18957 - extern(C++) doesn't mangle 'std' correctly on posix systems
Comment #3 by ilyayaroshenko — 2018-09-15T10:31:19Z
Comment #4 by ilyayaroshenko — 2018-09-15T10:33:07Z
(In reply to Manu from comment #0) > extern (C++, std) > { > struct test {} > } > extern (C++) void test(ref const(std.test) t) {} > > Expect: _Z4testRKNSt4testE > Actual: _Z4testRKN3std4testE Actual should be something like _Z4testRKSt4test
Comment #5 by ilyayaroshenko — 2018-09-16T11:59:48Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/9cb46f842778b3b7d3cb4efe698c32765fd72220 fix Issue 19248 https://github.com/dlang/dmd/commit/2db16adbced9e7736802c3d4fbaa0ca6c79f8dc5 Merge pull request #8700 from 9il/issue19248 [~regression fix] fix Issue 19248 and reopened 18957 merged-on-behalf-of: David Nadlinger <[email protected]>