[Issue 19841] Wrong ABI for C++ functions taking a struct by value

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 2 16:52:50 UTC 2019


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

--- Comment #4 from kinke at gmx.net ---
(In reply to Atila Neves from comment #2)
> Ah. In that case it's the copy ctor that causes this to happen:

Yes, as it's no POD in C++-terms anymore, affecting the ABI. So in D, you can
define a dummy postblit to make it a non-POD.
IIRC, Microsoft is a lot stricter, and the mere existence of at least one ctor
makes it a non-POD.

--


More information about the Digitalmars-d-bugs mailing list