www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Compiler crash when overloaded ctor mixed in.

#template ctor()
#{
#	this() { this(null); }
#	this( Object o ) {}
#}
#
#class Foo
#{
#	mixin ctor;
#}
#
#void main()
#{
#	Foo foo = new Foo();
#}

compiler ouput:
(3): class constructor call must be in a constructor
Segmentation fault

system:
dmd 0.101 on Linux
Sep 21 2004