[Issue 8914] Wrong `escaping reference` error on returning static array
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Jul 20 22:12:13 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=8914
Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://issues.dlang.org/sh
| |ow_bug.cgi?id=17076
--- Comment #2 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
Test case above no longer fails to compile since 2.074.0
(https://github.com/dlang/dmd/pull/6420), however, adding an indirection to the
parameter type still shows the error:
int*[2] f(int*[2] arr...)
{ return arr; }
// Error: returning `arr` escapes a reference to variadic parameter `arr`
--
More information about the Digitalmars-d-bugs
mailing list