www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Internal error: ...\ztc\cg87.c 1240

reply David L. Davis <SpottedTiger yahoo.com> writes:
# // cg87c.d  (on WinXP dmd v0.121)
# // BUG: Internal error: ...\ztc\cg87.c 1240
# int main()
# {
#     real r;
# 
#     if (r > ifloat.max)  // <--This line is causing the error.
#     //if (cast(ifloat)r > ifloat.max) //<--This line is ok.
#         goto Loverflow;
# 
#     return 0;
# 
#     Loverflow:
#         return 1;
# }

Output:
-------
C:\dmd>dmd cg87c.d
Internal error: ..\ztc\cg87.c 1240

C:\dmd>

David L.

-------------------------------------------------------------------
"Dare to reach for the Stars...Dare to Dream, Build, and Achieve!"
-------------------------------------------------------------------

MKoD: http://spottedtiger.tripod.com/D_Language/D_Main_XP.html
Apr 22 2005
parent Thomas Kuehne <thomas-dloop kuehne.thisisspam.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David L  Davis schrieb am Sat, 23 Apr 2005 03:16:35 +0000 (UTC):
 # // cg87c.d  (on WinXP dmd v0.121)
 # // BUG: Internal error: ...\ztc\cg87.c 1240
 # int main()
 # {
 #     real r;
 # 
 #     if (r > ifloat.max)  // <--This line is causing the error.
 #     //if (cast(ifloat)r > ifloat.max) //<--This line is ok.
 #         goto Loverflow;
 # 
 #     return 0;
 # 
 #     Loverflow:
 #         return 1;
 # }

 Output:
 -------
 C:\dmd>dmd cg87c.d
 Internal error: ..\ztc\cg87.c 1240

Added to DStress as http://dstress.kuehne.cn/nocompile/bug_cg87_1240_A.d http://dstress.kuehne.cn/nocompile/bug_cg87_1240_B.d http://dstress.kuehne.cn/nocompile/bug_cg87_1240_C.d http://dstress.kuehne.cn/nocompile/bug_cg87_1240_D.d http://dstress.kuehne.cn/nocompile/bug_cg87_1240_E.d http://dstress.kuehne.cn/nocompile/bug_cg87_1240_F.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFCaeRj3w+/yD4P9tIRAucGAKC6uXGLiCiMGJ93zwPJEeiZy7LzMgCg0XP2 +0DJFCcUHkO/U2r3m8IUmCI= =pS5C -----END PGP SIGNATURE-----
Apr 22 2005