April 13, 2014
https://issues.dlang.org/show_bug.cgi?id=12574

          Issue ID: 12574
           Summary: [ICE](statement.c, line 713) with reduce with wrong
                    tuple arity
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody@puremagic.com
          Reporter: bearophile_hugs@eml.cc

Issue found by monarchdodra, spinoff of Issue 12569 :


void main() {
    import std.algorithm: min, max, reduce;
    import std.typecons: tuple;
    dchar c = 'a';
    reduce!(min, max)(tuple(c, c, c), "hello");
}



DMD 2.066alpha gives:

Assertion failure: 'global.gaggedErrors || global.errors' on line 713 in file 'statement.c'

--