[Issue 23452] Noncopyable variable can be silently passed to a function with variadic args
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 3 22:49:08 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23452
Imperatorn <johan_forsberg_86 at hotmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |johan_forsberg_86 at hotmail.c
| |om
--- Comment #1 from Imperatorn <johan_forsberg_86 at 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.
--
More information about the Digitalmars-d-bugs
mailing list