www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - mixins 2

reply bobef <bobef lessequal.com> writes:
============================== a.d ======================

template FFF()
{
	class A : B
	{
		this(){}
	}

	class B
	{
	}
}

void main()
{
	mixin FFF;
}

==========================================================


C:\dev>dmd a.d
FuncDeclaration::semantic3(constructor 'this', sc = 0098A7E8)
Assertion failure: '0' on line 373 in file 'func.c'

abnormal program termination
Mar 01 2006
parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

bobef schrieb am 2006-03-01:
============================== a.d ======================

 template FFF()
 {
 	class A : B
 	{
 		this(){}
 	}

 	class B
 	{
 	}
 }

 void main()
 {
 	mixin FFF;
 }

==========================================================


 C:\dev>dmd a.d
 FuncDeclaration::semantic3(constructor 'this', sc = 0098A7E8)
 Assertion failure: '0' on line 373 in file 'func.c'

 abnormal program termination
Added to DStress as http://dstress.kuehne.cn/run/t/this_10_B.d http://dstress.kuehne.cn/run/t/this_10_C.d http://dstress.kuehne.cn/run/t/this_10_A.d http://dstress.kuehne.cn/nocompile/t/this_10_D.d http://dstress.kuehne.cn/nocompile/t/this_10_E.d http://dstress.kuehne.cn/nocompile/t/this_10_F.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFEBrfk3w+/yD4P9tIRAj0zAJsFJHXjalK3KtFZHP8x9L9lmZ3GfACgp+rW IIlb84iueeyX3iZFX/yQ6bY= =BCaa -----END PGP SIGNATURE-----
Mar 02 2006