www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Ambiguous type inference crashes compiler

reply Don Clugston <dac nospam.com.au> writes:
This should produce an error message; instead, compiler goes ape.
-------------
const uint baboon = 3;

const int monkey = 4;

const ape = monkey * baboon;
Feb 02 2006
parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Don Clugston schrieb am 2006-02-02:
 This should produce an error message; instead, compiler goes ape.
 -------------
 const uint baboon = 3;

 const int monkey = 4;

 const ape = monkey * baboon;
Added to DStress as http://dstress.kuehne.cn/nocompile/c/const_30_A.d http://dstress.kuehne.cn/nocompile/c/const_30_B.d http://dstress.kuehne.cn/nocompile/c/const_30_C.d http://dstress.kuehne.cn/nocompile/c/const_30_D.d http://dstress.kuehne.cn/run/c/const_30_E.d http://dstress.kuehne.cn/nocompile/c/const_30_F.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFD4nb03w+/yD4P9tIRAphkAJ9DZGiOnSHMChL7rk9KLNAE33kAtACgqEwc oL8b5mF1dMxHrCpQVEksP90= =L1+4 -----END PGP SIGNATURE-----
Feb 04 2006