www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - circular constant definitions not rejected by dmd 0.147

reply Wang Zhen <nehzgnaw gmail.com> writes:
const int a = b;
const int b = .a;
void main(){}
//should not compile
Feb 17 2006
parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Wang Zhen schrieb am 2006-02-17:
 const int a = b;
 const int b = .a;
 void main(){}
 //should not compile
Added to DStress as http://dstress.kuehne.cn/nocompile/c/const_32_A.d http://dstress.kuehne.cn/nocompile/c/const_32_B.d http://dstress.kuehne.cn/nocompile/c/const_32_C.d http://dstress.kuehne.cn/nocompile/c/const_32_D.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFD9cOY3w+/yD4P9tIRAmqlAKCP0R909jD5j2iY3MnsALR7ZW1X+wCdFNM4 pn4OThZ1RJzLwAy86wUE3ck= =idcP -----END PGP SIGNATURE-----
Feb 17 2006