digitalmars.D.bugs - cast(int) crashes dmd 0.112
- zwang (1/1) Feb 03 2005 int main(){return cast(int)(.0>>0);}
- =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= (4/10) Feb 03 2005 Which is not a crash.
- Thomas Kuehne (12/14) Feb 03 2005 -----BEGIN PGP SIGNED MESSAGE-----
zwang wrote:int main(){return cast(int)(.0>>0);}With GDC, this returns:x.d:1: '0.0' is not of integral type, it is a double 0 double 0x19022e0 d/dmd/expression.c:682: failed assertion `0' x.d:0: internal compiler error: Abort trapWhich is not a crash. --anders
Feb 03 2005
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Anders F Björklund schrieb am Thu, 03 Feb 2005 16:53:35 +0100:zwang wrote:Added to DStress as http://dstress.kuehne.cn/run/bug_expression_661_B.d Note: The bug has shifted now to line 681 (gdc-0.10). Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFCArcC3w+/yD4P9tIRAlqCAJ0dW0wyYBOiaH0Iq2XpNa2SExGkXwCgzj6E n36D4ubYW+cK+HptF+fORwA= =soMM -----END PGP SIGNATURE-----int main(){return cast(int)(.0>>0);}
Feb 03 2005