D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 18957 - extern(C++) doesn't mangle 'std' correctly on posix systems
Summary: extern(C++) doesn't mangle 'std' correctly on posix systems
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P1 normal
Assignee: No Owner
URL:
Keywords: C++
Depends on:
Blocks:
 
Reported: 2018-06-08 05:21 UTC by Manu
Modified: 2018-09-16 11:59 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Manu 2018-06-08 05:21:10 UTC
extern (C++, std)
{
  struct test {}
}
extern (C++) void test(ref const(std.test) t) {}

Expect: _Z4testRKNSt4testE
Actual: _Z4testRKN3std4testE
Comment 1 Mathias LANG 2018-06-08 07:31:39 UTC
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 github-bugzilla 2018-06-08 08:44:20 UTC
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 Илья Ярошенко 2018-09-15 10:31:19 UTC
see description in https://issues.dlang.org/show_bug.cgi?id=19248
Comment 4 Илья Ярошенко 2018-09-15 10:33:07 UTC
(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 Илья Ярошенко 2018-09-16 11:59:48 UTC
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 <code@klickverbot.at>