[Issue 650] New: Assertion failure: '0' on line 774 in file 'expression.c'

Thomas Kuehne thomas-dloop at kuehne.cn
Thu Dec 7 03:00:21 PST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail at puremagic.com schrieb am 2006-12-05:
> http://d.puremagic.com/issues/show_bug.cgi?id=650

> Feeding arrayliteral of chars (not string literals)
> as a template argument causes abnormal termination of dmd.
>
>   // credit goes to http://pc8.2ch.net/test/read.cgi/tech/1158013550/535
>   template test(char[] val) {}
>   mixin test!(['a','b','c']); // if this is "abc" it's ok.
>
> outputs:
>
>   global.errors = 0, gag = 0
>   01E27330 arrayliteral type=char[3]
>   Assertion failure: '0' on line 774 in file 'expression.c'
>
>   abnormal program termination

Added to DStress as
http://dstress.kuehne.cn/compile/t/template_50_A.d
http://dstress.kuehne.cn/compile/t/template_50_B.d

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFFd/yKLK5blCcjpWoRAk/9AJ9sGY+NvRH6gnE98Sh2rHItF5wehACdEUv4
ZhNcaKNF+QvBs8ffdX41/ss=
=paZ8
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list