[Issue 17454] ABI non-conformity: produces unaligned placement of struct on stack

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue May 30 10:51:46 PDT 2017


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

kinke at gmx.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kinke at gmx.net

--- Comment #6 from kinke at gmx.net ---
What might be the issue here is that you need to take care of PODness when
declaring structs in D and C++. The C++ move ctor may make it a non-POD (which
are returned via hidden sret pointer, even if they fit in a register), while
the D definition is a POD.
I had such an issue a while back when I added a C++ ctor (for convenience).

--


More information about the Digitalmars-d-bugs mailing list