[Issue 22954] Header generator emits extern(C) member functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 29 11:01:06 UTC 2022


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

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 #13915 "Fix 22954 - dtoh: Ignore member functions with C
linkage" was merged into master:

- 29d1c5a0bd08b7b24d7f82029baaf44e066b0e98 by MoonlightSentinel:
  Fix 22954 - dtoh: Ignore member functions with C linkage

  Those functions receive D mangling and hence aren't easily callable via
  the header file. Note that C++ does the same for members in an
  `extern "C"` aggregate (=> mangle as C++ symbol).
  `

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

--


More information about the Digitalmars-d-bugs mailing list