[Issue 595] New: can't append to array/arrayliteral statically

Thomas Kuehne thomas-dloop at kuehne.cn
Sat Nov 25 10:02:34 PST 2006


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

d-bugmail at puremagic.com schrieb am 2006-11-25:
> http://d.puremagic.com/issues/show_bug.cgi?id=595

> void main(){
>   const char[] test = "" ~ 'a' ~ 'b' ~ 'c';//ok
>   char[] test2 = (cast(char[])null)~'a'~'b'~'c';//ok
>   const char[] test3 = (cast(char[])null)~'a'~'b'~'c';//failed
>   char[] test4 = (cast(char[])[])~'a'~'b'~'c';//ok
>   const char[] test5 = (cast(char[])[])~'a'~'b'~'c';//failed
>   const char[] test6 = null;
>   const char[] test7 = test6~'a'~'b'~'c';//failed
> }

Added to DStress as
http://dstress.kuehne.cn/compile/o/opCat_25_A.d
http://dstress.kuehne.cn/compile/o/opCat_25_B.d

(the other cases are covered by issue 353)

Thomas


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

iD8DBQFFaIxQLK5blCcjpWoRAjjHAKCRmAOpraprE45RlDMy5ctaTRotSgCgq/K9
a3M88iwUCJXDQ9xDTNz1qIw=
=7fXt
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list