www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - BUG: assert in template.c

reply Lars Ivar Igesund <larsivar igesund.net> writes:
class Foo(T) {}
class Bar : Foo!(Nothing) {}

compiled with -c outputs

template.d(2): identifier 'Nothing' is not defined
Assertion failure: 'ta' on line 1455 in file 'template.c'

abnormal program termination
The error message is correct, then it crash. Lars Ivar Igesund
Feb 22 2005
parent =?ISO-8859-1?Q?Thomas_K=FChne?= <thomas-dloop kuehne.THISISSPAM.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lars Ivar Igesund wrote:

| class Foo(T) {}
| class Bar : Foo!(Nothing) {}
|
| compiled with -c outputs
|
|  >template.d(2): identifier 'Nothing' is not defined
|  >Assertion failure: 'ta' on line 1455 in file 'template.c'
|  >
|  >abnormal program termination
|
| The error message is correct, then it crash.
|
| Lars Ivar Igesund

Added to DStress as
http://dstress.kuehne.cn/nocompile/bug_template_1455_A.d

Thomas

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFCMihk3w+/yD4P9tIRAta6AJ9teOY9KOXgtaevd4jzk9Pm3O+CEgCgv1lv
1gaw7n1WoBKP2gvLGuS81N4=
=oc+w
-----END PGP SIGNATURE-----
Mar 11 2005