Article View: gnu.gcc.bug
Article #6166Re: Parse error?
From: Richard Kenner
Date: Wed, 20 Nov 1996 00:00
Date: Wed, 20 Nov 1996 00:00
15 lines
1115 bytes
1115 bytes
The point I think he was trying to make is that it wasn't a floating point
number?
It was the hex integer negative 0x2E, plus the integer value zero.
The compiler is interpreting it as a floating point number in exponential
form. It shouldn't be doing so since the 0x should indicate that the number
is in hex. Basically it looks like the "0x" is having lower precedence than
the "E" for exponential numbers.
*You* may be interpreting it as three tokens, and that's how a C
compiler would have interpreted it (and how GCC will with
-traditional), but that's *not* the way an ANSI C compiler is required
to interpret it.
Technical Details
Message-ID:
<9611210213.AA09203@vlsi1.ultra.nyu.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113d02,39f8d0ab16fe7db1 X-Google-Attributes: gid113d02,public From: kenner@vlsi1.ultra.nyu.edu (Richard Kenner) Subject: Re: Parse error? Date: 1996/11/20 Message-ID: <9611210213.AA09203@vlsi1.ultra.nyu.edu> X-Deja-AN: 197755684 sender: bug-gcc-request@prep.ai.mit.edu x-gateway: relay2.UU.NET from bug-gcc to gnu.gcc.bug; Wed, 20 Nov 1996 22:25:07 EST newsgroups: gnu.gcc.bug