Thread overview
[Issue 23452] Noncopyable variable can be silently passed to a function with variadic args
Nov 03, 2022
Imperatorn
Nov 04, 2022
Dlang Bot
Dec 17, 2022
Iain Buclaw
November 03, 2022
https://issues.dlang.org/show_bug.cgi?id=23452

Imperatorn <johan_forsberg_86@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |johan_forsberg_86@hotmail.c
                   |                            |om

--- Comment #1 from Imperatorn <johan_forsberg_86@hotmail.com> ---
Side note, if changed to

```d
void test(Foo[] foos)
```

And passed that way, you get the Error: struct `Foo` is not copyable because it has a disabled postblit.

So it seems (potentially) limited to vararg.

--
November 04, 2022
https://issues.dlang.org/show_bug.cgi?id=23452

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

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

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@RazvanN7 created dlang/dmd pull request #14616 "Fix Issue 23452 - Noncopyable variable can be silently passed to a function with variadic args" fixing this issue:

- Fix Issue 23452 - Noncopyable variable can be silently passed to a function with variadic args

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

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

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

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

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

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

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

--