digitalmars.D.bugs - const evaluation order
- Thomas Kuehne (20/20) Nov 25 2004 -----BEGIN PGP SIGNED MESSAGE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 fails to compile: const int c = b + 1; const int a = 1; const int b = a + 1; reordering solves the problem: const int a = 1; const int b = a + 1; const int c = b + 1; test cases: http://svn.kuehne.cn/dstress/run/const_05.d http://svn.kuehne.cn/dstress/run/const_06.d Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.9.9 (GNU/Linux) iD8DBQFBpfmJ3w+/yD4P9tIRAudIAKCpMAdzej9+oQtv1FjcYXZYHe4BqACfasXB GhOeAMKH6mlG9bYAngymdhI= =+gpi -----END PGP SIGNATURE-----
Nov 25 2004