[Issue 24368] destruction of parameter should be done by caller
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 4 08:20:02 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24368
Iain Buclaw <ibuclaw at gdcproject.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ibuclaw at gdcproject.org
--- Comment #2 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Walter Bright from comment #0)
> What dmd is doing is not wrong, it just is not what g++ is doing. I do not
> know why this is not showing up as a bug at least with g++ ABI compatibility.
Because this only applies to `extern(D)` code?
As you've said, what D does isn't wrong, but no ABI incompatibilty is being
broken here either. So I don't see the problem here. We don't *need* to copy
everything g++ does.
--
More information about the Digitalmars-d-bugs
mailing list