April 08, 2005 const initialization bug | ||||
---|---|---|---|---|
| ||||
WinXP, dmd0.120.2 The following assert fails. <code> void main() { const uint mask = (uint.max >> 1); assert(mask == (uint.max >> 1)); } </code> |
April 09, 2005 Re: const initialization bug | ||||
---|---|---|---|---|
| ||||
Posted in reply to tetsuya | -----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----- |
Copyright © 1999-2021 by the D Language Foundation