[Issue 12574] New: [ICE](statement.c, line 713) with reduce with wrong tuple arity

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Apr 13 12:22:17 PDT 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 at puremagic.com
          Reporter: bearophile_hugs at 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'

--


More information about the Digitalmars-d-bugs mailing list