digitalmars.D.bugs - [Issue 594] New: can't cast arrayliteral statically
- d-bugmail puremagic.com (19/19) Nov 25 2006 http://d.puremagic.com/issues/show_bug.cgi?id=594
- Thomas Kuehne (12/19) Nov 25 2006 -----BEGIN PGP SIGNED MESSAGE-----
- d-bugmail puremagic.com (9/9) Apr 20 2007 http://d.puremagic.com/issues/show_bug.cgi?id=594
http://d.puremagic.com/issues/show_bug.cgi?id=594 Summary: can't cast arrayliteral statically Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: lovesyao hotmail.com 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 } --
Nov 25 2006
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 d-bugmail puremagic.com schrieb am 2006-11-25:http://d.puremagic.com/issues/show_bug.cgi?id=594void 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-----
Nov 25 2006
http://d.puremagic.com/issues/show_bug.cgi?id=594 bugzilla digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Fixed DMD 1.013 --
Apr 20 2007