D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 19504 - pragma(mangle) ignored for C++ destructors
Summary: pragma(mangle) ignored for C++ destructors
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Linux
: P1 normal
Assignee: No Owner
URL:
Keywords: C++, link-failure, mangling, pull
Depends on:
Blocks:
 
Reported: 2018-12-21 14:22 UTC by Atila Neves
Modified: 2020-02-21 05:38 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Atila Neves 2018-12-21 14:22:23 UTC
----
extern(C++) struct Foo {
    pragma(mangle, "HOHOHO")
    ~this();
}
----

The symbol's name isn't HOHOHO.
Comment 1 Dlang Bot 2020-02-21 04:10:21 UTC
@Geod24 created dlang/dmd pull request #10811 "Add test for fixed issue 19504" fixing this issue:

- Add test for fixed issue 19504

https://github.com/dlang/dmd/pull/10811
Comment 2 Dlang Bot 2020-02-21 05:38:28 UTC
dlang/dmd pull request #10811 "Add test for fixed issue 19504" was merged into master:

- a9b2e241ff7a8ddeafd44072e461667ebce59c58 by Geod24:
  Add test for fixed issue 19504

https://github.com/dlang/dmd/pull/10811