www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15172] New: ICE(interpret.c ctfeCompile) Assertion

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

          Issue ID: 15172
           Summary: ICE(interpret.c ctfeCompile) Assertion
                    `!fd->semantic3Errors' failed.
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

Reduced test:
---
class ThreadError : Error
{
    this(string)
    {
    }
}

void onThreadError() {
    __gshared auto ThreadError = new ThreadError(null);
}


Compiler output:
---
Error: constructor bug.ThreadError.this no match for implicit super() call in
constructor
dmd: interpret.c:702: void ctfeCompile(FuncDeclaration*): Assertion
`!fd->semantic3Errors' failed.
Aborted


Version:
---
DMD64 D Compiler v2.068.0
Copyright (c) 1999-2015 by Digital Mars written by Walter Bright
Documentation: http://dlang.org/

--
Oct 07 2015