www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - circular constant definitions bring about endless error messages

reply Wang Zhen <nehzgnaw gmail.com> writes:
const auto a = b; const auto b = a; void main(){}

/*
dmd 0.147 reports:
t.d(1): forward reference of b
t.d(1): forward reference of a
...
lather, rinse, and repeat.

*/
Feb 17 2006
parent reply Wang Zhen <nehzgnaw gmail.com> writes:
a shorter test case:

const auto a = a; void main(){}


Wang Zhen wrote:
 const auto a = b; const auto b = a; void main(){}
 
 /*
 dmd 0.147 reports:
 t.d(1): forward reference of b
 t.d(1): forward reference of a
 ...
 lather, rinse, and repeat.
 
 */

Feb 17 2006
parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Wang Zhen schrieb am 2006-02-17:
 a shorter test case:

 const auto a = a; void main(){}


 Wang Zhen wrote:
 const auto a = b; const auto b = a; void main(){}
 
 /*
 dmd 0.147 reports:
 t.d(1): forward reference of b
 t.d(1): forward reference of a
 ...
 lather, rinse, and repeat.
 
 */


Added to DStress as http://dstress.kuehne.cn/nocompile/c/const_34_A.d http://dstress.kuehne.cn/nocompile/c/const_34_B.d http://dstress.kuehne.cn/nocompile/c/const_34_C.d http://dstress.kuehne.cn/nocompile/c/const_34_D.d http://dstress.kuehne.cn/nocompile/c/const_34_E.d http://dstress.kuehne.cn/nocompile/c/const_34_F.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFD9tBO3w+/yD4P9tIRAunAAKC8PN4a3w+UGpXEOoFSByzyAzrQdQCg0K6m sNfm33WsrAbhP5SWHEq8xOc= =pJna -----END PGP SIGNATURE-----
Feb 18 2006