www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14621] New: ICE: Assertion failure: 'global.gaggedErrors ||

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

          Issue ID: 14621
           Summary: ICE: Assertion failure: 'global.gaggedErrors ||
                    global.errors' on line 752 in file 'statement.c'
           Product: D
           Version: unspecified
          Hardware: x86
                OS: Windows
            Status: NEW
          Keywords: ice, ice-on-invalid-code
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: renezwanenburg gmail.com

Reduced code:

void main()
{
    S s;
    s.foo();
}

struct S
{
    float[] array;
    alias array this;

    template erroneousTemplateInstantiation()
    {
        static assert(false);
    }

    void foo()
    {
        S ret;
        ret[] = erroneousTemplateInstantiation!();
    }
}

--
May 26 2015