www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12574] New: [ICE](statement.c, line 713) with reduce with


          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

Apr 13 2014