www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13220] New: [ICE] 'global.gaggedErrors || global.errors' on

https://issues.dlang.org/show_bug.cgi?id=13220

          Issue ID: 13220
           Summary: [ICE] 'global.gaggedErrors || global.errors' on line
                    750 in file 'statement.c'
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: jblume jblume.com

import std.typecons;

template test(T)
{
    bool test() { return false; };
}

void main()
{
    Tuple!bool t;
    t[0] = test!0();
}


On v2.066.0-b6 this results in:

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

--
Jul 28 2014