www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Buggy DStress test cases

reply Don Clugston <dac nospam.com.au> writes:
mangleof_14_b, _14_c and _14_d are expected to fail to compile
They are assigning a char [] to an int.
(in early releases they caused segfaults).

The other mangleof_14 cases fail because

x.mangleof[2]

does not work. You can however write

(x.mangleof)[2]
Sep 04 2006
parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Don Clugston schrieb am 2006-09-04:
 mangleof_14_b, _14_c and _14_d are expected to fail to compile
 They are assigning a char [] to an int.
 (in early releases they caused segfaults).
Thanks, fixed.
 The other mangleof_14 cases fail because

 x.mangleof[2]

 does not work. You can however write

 (x.mangleof)[2]
That is a DMD bug. The code below works - even though it uses x.mangleof[2]. Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFE/9swLK5blCcjpWoRAv95AJ4rgXaitWii00+16cANLwol8LBSZACeJB8U NyoH0zIDW7hoLLsFJhf+Hqk= =US8K -----END PGP SIGNATURE-----
Sep 07 2006