[Issue 21219] Invalid C++ header generated for extern(C++, [class|struct])

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 4 06:09:07 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=21219

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #11681 "Fix 21219 - Invalid C++ header generated for
extern(C++, [class|struct])" was merged into master:

- 0cce92d5116d5156344faeb64ecdffb405fad493 by MoonlightSentinel:
  Fix 21219 - Invalid C++ header generated for extern(C++, [class|struct])

  Fixed in three steps:
  - recognize that `extern(C++, [class|struct])` means `extern(C++)`
  - select the right identifier based on the `CPPMANGLE`
  - add `public:` if required by `CPPMANGLE`, not the AST type

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

--


More information about the Digitalmars-d-bugs mailing list