Thread overview
[Issue 20770] error: cannot pass types that need destruction as variadic arguments
Apr 26, 2020
kinke
Apr 27, 2020
Iain Buclaw
Dec 17, 2022
Iain Buclaw
April 26, 2020
https://issues.dlang.org/show_bug.cgi?id=20770

kinke <kinke@gmx.net> changed:

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

--- Comment #1 from kinke <kinke@gmx.net> ---
(In reply to Iain Buclaw from comment #0)
> There is no reason why internally these can't be passed by invisible reference.

Not so sure about that; normally, the compiler creates a temporary in the caller, passes it by hidden ref, and lets the callEE destruct the temporary.

In the vararg case, there's no formal parameter, and the callee doesn't destruct.

--
April 27, 2020
https://issues.dlang.org/show_bug.cgi?id=20770

Iain Buclaw <ibuclaw@gdcproject.org> changed:

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

--- Comment #2 from Iain Buclaw <ibuclaw@gdcproject.org> ---
structs with postblits and copy-ctors need to have the same applied as well.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=20770

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--
December 13
https://issues.dlang.org/show_bug.cgi?id=20770

--- Comment #3 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/19696

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--