On 9/12/11 7:28 AM, Timon Gehr wrote:
This eager D version uncovered a DMD bug:import std.stdio, std.algorithm, std.range; T[][] powerset(T)(T[] xs){ T[][] r=new T[][](1<<xs.length); foreach(i,ref x;r) x=array(indexed(xs,filter!((a){return 1<<a&i;})(iota(0,xs.length)))); return r; } void main(){ writeln(powerset([1,2,3])); } This does not compile iff the -inline flag is passed to DMD 2.055.
goto bugzilla; Andrei
