[Issue 20235] C++ ABI doesn't destruct struct arguments in the callee

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 1 06:11:59 UTC 2020


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

--- Comment #4 from Dlang Bot <dlang-bot at dlang.rocks> ---
@WalterBright created dlang/dmd pull request #12012 "Reboot of Fix issue 20235
- caller destroys arguments on POSIX #10593" fixing this issue:

- Fix issue 20235 - caller destroys arguments on POSIX

  On Windows arguments are destroyed in the callee regardless of which calling
convention is used (cdecl, stdcall... etc), 32bits and 64bits alike.

  On the other platforms, the caller destroys the arguments if the caller
cleans the stack.

https://github.com/dlang/dmd/pull/12012

--


More information about the Digitalmars-d-bugs mailing list