[Issue 594] New: can't cast arrayliteral statically
Thomas Kuehne
thomas-dloop at kuehne.cn
Sat Nov 25 05:47:52 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=594
> void main(){
> const char[] t="abcd";
> const ubyte[] t2=cast(ubyte[])t;//ok
> const char[] t3=['a','b','c','d'];
> const ubyte[] t4=cast(ubyte[])t3;//error
> }
Added to DStress as
http://dstress.kuehne.cn/compile/c/cast_33_A.d
http://dstress.kuehne.cn/compile/c/cast_33_B.d
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFFaD3BLK5blCcjpWoRApYEAJ0eVrL3fJZsJ2Xvr0+U8V0gPwk61ACdFjfC
iiMBbopLtQHhZ/2evEdZAhY=
=iyyu
-----END PGP SIGNATURE-----
More information about the Digitalmars-d-bugs
mailing list