http://d.puremagic.com/issues/show_bug.cgi?id=9110
Summary: Escaping reference error from lazy variadic parameters
Product: D
Version: D2
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Roy Crihfield <[email protected]> 2012-12-02 17:30:53 PST
---
void main()
{
auto a = foo();
}
int foo(lazy int[] dgs...)
{
int res;
foreach (i, dg; dgs)
res += dg;
return res;
}
On 2.060, Fails with:
Error: escaping reference to local __arrayArg1013
Fails with any number of arguments passed.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------