Thread overview
[Issue 24368] destruction of parameter should be done by caller
Feb 04
Dlang Bot
February 03
https://issues.dlang.org/show_bug.cgi?id=24368

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |backend

--
February 03
https://issues.dlang.org/show_bug.cgi?id=24368

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |C++, wrong-code

--
February 03
https://issues.dlang.org/show_bug.cgi?id=24368

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=11382

--
February 03
https://issues.dlang.org/show_bug.cgi?id=24368

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=14912

--
February 04
https://issues.dlang.org/show_bug.cgi?id=24368

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #1 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dmd pull request #16145 "fix bugzilla Issue 24368 - destruction of parameter should be done by…" fixing this issue:

- fix bugzilla Issue 24368 - destruction of parameter should be done by caller

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

--
February 04
https://issues.dlang.org/show_bug.cgi?id=24368

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw@gdcproject.org

--- Comment #2 from Iain Buclaw <ibuclaw@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.

--