digitalmars.D.bugs - const initialization bug
- tetsuya <tetsuya_member pathlink.com> Apr 08 2005
WinXP, dmd0.120.2
The following assert fails.
<code>
void main()
{
const uint mask = (uint.max >> 1);
assert(mask == (uint.max >> 1));
}
</code>
Apr 08 2005
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 tetsuya schrieb am Fri, 8 Apr 2005 22:02:05 +0000 (UTC):WinXP, dmd0.120.2 The following assert fails. <code> void main() { const uint mask = (uint.max >> 1); assert(mask == (uint.max >> 1)); } </code>
Added to DStress as http://dstress.kuehne.cn/run/opShr_01.d http://dstress.kuehne.cn/run/opShr_02.d http://dstress.kuehne.cn/run/opShr_03.d http://dstress.kuehne.cn/run/opShr_04.d http://dstress.kuehne.cn/run/opShr_05.d http://dstress.kuehne.cn/run/opShr_06.d http://dstress.kuehne.cn/run/opShrAssign_01.d http://dstress.kuehne.cn/run/opShrAssign_02.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFCV3Yo3w+/yD4P9tIRAt1HAJ9b20ZCuu7m3aSeev4UwSRO7vfhUwCePLP+ 9Kz0A1kBtZuync7clp/EINM= =iAPS -----END PGP SIGNATURE-----
Apr 08 2005








Thomas Kuehne <thomas-dloop kuehne.thisisspam.cn>