[Issue 353] New: null passed as a char[] template argument, concatenated with a string literal, is a non-constant expression

Thomas Kuehne thomas-dloop at kuehne.cn
Wed Sep 20 12:19:24 PDT 2006


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

d-bugmail at puremagic.com schrieb am 2006-09-16:
> http://d.puremagic.com/issues/show_bug.cgi?id=353

> template Qwert(char[] yuiop) {
>     const char[] Qwert = yuiop ~ "asdfg";
> }
>
> void main() {
>     char[] hjkl = Qwert!(null);
> }
> ----------
> D:\My Documents\Programming\D\Tests\bugs\string_template7.d(2): non-constant
> expression null ~ "asdfg"
> ----------

<snip>

Added to DStress as
http://dstress.kuehne.cn/compile/o/opCat_21_A.d
http://dstress.kuehne.cn/compile/o/opCat_21_B.d
http://dstress.kuehne.cn/compile/o/opCat_21_C.d
http://dstress.kuehne.cn/compile/o/opCat_21_D.d
http://dstress.kuehne.cn/compile/o/opCat_21_E.d
http://dstress.kuehne.cn/compile/o/opCat_21_F.d
http://dstress.kuehne.cn/compile/o/opCat_22_A.d
http://dstress.kuehne.cn/compile/o/opCat_22_B.d
http://dstress.kuehne.cn/compile/o/opCat_22_C.d
http://dstress.kuehne.cn/compile/o/opCat_22_D.d
http://dstress.kuehne.cn/compile/o/opCat_22_E.d
http://dstress.kuehne.cn/compile/o/opCat_22_F.d

Thomas


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

iD8DBQFFEZK9LK5blCcjpWoRAqrbAKCpL/Tfq5p4DhSk3YnpB84rxf4HPgCff/Ek
tLKCoqSG5qsDPbP+WgHxtfU=
=FZkD
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list