[Issue 16243] wrong C++ argument passing with empty struct and 6 integers

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Sep 12 00:59:04 PDT 2016


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

--- Comment #9 from Jacob Carlborg <doob at me.com> ---
(In reply to kinke from comment #4)
> clang doesn't pass empty structs at all for 32-bit, while GCC does. We have
> such a special case in LDC too for 32-bit OSX, where we assume clang, but
> not for 32-bit Linux, where we assume GCC. See
> https://github.com/ldc-developers/ldc/blob/master/gen/abi-x86.cpp#L214.

Clang claims to be compatible with GCC. If there's a case when it's not
compatible, it might be a bug in Clang.

--


More information about the Digitalmars-d-bugs mailing list