[Issue 16243] wrong C++ argument passing with empty struct when interfacing with Clang

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 5 21:40:29 UTC 2018


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

Iain Buclaw <ibuclaw at gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw at gdcproject.org

--- Comment #25 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to David Nadlinger from comment #24)
> cf. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60336 (per @ibuclaw)

Thanks.

To summarize the above GCC bug.  They have recognized the difference in empty
struct sizes as a bug, and this is now fixed in GCC 8.  So C, C++, GCC, and
Clang should all pass empty structs in the same way - rather than two different
ways.

How this affects dmd?  I guess you will need to revert whatever workarounds
you've applied in order to support the double behaviour.

--


More information about the Digitalmars-d-bugs mailing list