4 fail_compilation/ice12574.d(40): Error: tuple index 2 exceeds length 2
5 fail_compilation/ice12574.d(53): Error: template instance ice12574.reduce!("a", "a").reduce!(Tuple!(int, int, int)) error instantiating
15 Tuple!A tuple(A...)(A args) { return typeof(return)(args); }
17 template binaryFun(alias fun)
19 static if (is(typeof(fun) : string))
21 auto binaryFun(ElementType1, ElementType2)(auto ref ElementType1 __a, auto ref ElementType2 __b)
23 mixin("alias "~"a"~" = __a ;");
24 mixin("alias "~"b"~" = __b ;");
30 alias binaryFun = fun;
34 template reduce(fun...)
36 auto reduce(Seed)(Seed result)
38 foreach (i, Unused; Seed.Types)
40 result[i] = binaryFun!(fun[i])(1, 1); // here
53 reduce!("a", "a")(tuple(1, 1, 1));