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/