www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Static constructor assertion failure

class Foo
{
static:
   this() {}
}

DMD on Windows prints:

Assertion failure: '!(sc->stc & STCstatic)' on line 1203 in file 'func.c'

abnormal program termination


Also happens with  static{ this(){} }, but doesn't cause the error if it's
just  static this(){}.
May 16 2004