[dmd-beta] dmd 2.053 beta

Nick Sabalausky bus_dmdbeta at semitwist.com
Sat May 7 00:40:35 PDT 2011


Not sure if this is a regression or a bug fix, but:

-----------------------------------
import std.algorithm;

void main()
{
 int foo(int i) { return i; }

 int[] arr;
 auto x = map!( (int a){return foo(a);} )(arr);
}
-----------------------------------

That worked in 2.052, but fails to compile in 2.053 beta with the message:

test.d(8): Error: delegate std.algorithm.__dgliteral1 cannot access frame of 
function test.main.__dgliteral1




More information about the dmd-beta mailing list