Article View: gnu.gcc.bug
Article #121bug with hex constants ending in 'e' in cccp
From: Glen McCluskey APD x2896
Date: Wed, 21 Jun 1989 23:29
Date: Wed, 21 Jun 1989 23:29
34 lines
926 bytes
926 bytes
/* cccp of: */
#define XXX 37
main()
{
int a;
a = 0xe+XXX;
}
/* comes out as: */
# 1 "xxx"
main()
{
int a;
a = 0xe+XXX;
}
This is in 1.26, but later ones have the same problem.
The problem is in the main tokenizing routine in
"recscan()". The code there fails to distinguish the
case of hex as opposed to floating numbers with the 'e'
exponent.
--
-------------------------
Glen McCluskey
Mentor Graphics Corporation
glenm@pdx.MENTOR.COM
Technical Details
Message-ID:
<1989Jun21.232911.1676@mentor.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!zephyr!tektronix!psueea!qiclab!mntgfx!glenmShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!zephyr!tektronix!psueea!qiclab!mntgfx!glenm From: glenm@mentor.com (Glen McCluskey @ APD x2896) Newsgroups: gnu.gcc.bug Subject: bug with hex constants ending in 'e' in cccp Message-ID: <1989Jun21.232911.1676@mentor.com> Date: 21 Jun 89 23:29:11 GMT Distribution: usa Organization: Mentor Graphics Corporation, Beaverton Oregon Lines: 34