[Issue 24577] Struct with constructor returned from C++ wrong

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 1 16:43:56 UTC 2024


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

kinke <kinke at gmx.net> changed:

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

--- Comment #1 from kinke <kinke at gmx.net> ---
I'm pretty sure there's an existing issue about this. IIRC, it's backend
specific, LDC working fine. It boils down to MSVC++ having separate POD
semantics - any struct with an explicit constructor makes it a non-POD. Such
types are returned via sret (caller passing a pointer to the pre-allocated
result).

--


More information about the Digitalmars-d-bugs mailing list