[Issue 11657] Pass array literal to typesafe variadic argument on stack
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue May 6 09:51:11 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=11657
--- Comment #2 from hsteoh at quickfur.ath.cx ---
Really? variadic arguments are not allowed to escape? Then there is a glaring
hole:
class C {
int[] a;
this(int[] data...) {
a = data; // compiles
}
}
This case needs to be prohibited, otherwise we end up with bug #5212.
--
More information about the Digitalmars-d-bugs
mailing list