public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/3885: Incorrect "invalid suffix on integer constant" error
@ 2001-07-30 20:27 aoliva
0 siblings, 0 replies; 2+ messages in thread
From: aoliva @ 2001-07-30 20:27 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, keith.rollin, nobody
Synopsis: Incorrect "invalid suffix on integer constant" error
State-Changed-From-To: open->closed
State-Changed-By: aoliva
State-Changed-When: Mon Jul 30 20:27:41 2001
State-Changed-Why:
Strange as it may seem, the behavior is correct, and mandated by the C Standard. 0x00E-0x00A is a single preprocessor token, of type pp-number, and it must become a single compiler token, but it can't. The gotcha is the `E-' sequence, that makes it seem like the exponent notation of floating-point constants.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3885&database=gcc
^ permalink raw reply [flat|nested] 2+ messages in thread
* c/3885: Incorrect "invalid suffix on integer constant" error
@ 2001-07-30 14:56 keith.rollin
0 siblings, 0 replies; 2+ messages in thread
From: keith.rollin @ 2001-07-30 14:56 UTC (permalink / raw)
To: gcc-gnats
>Number: 3885
>Category: c
>Synopsis: Incorrect "invalid suffix on integer constant" error
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jul 30 14:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Keith Rollin
>Release: gcc 3.0
>Organization:
>Environment:
>Description:
I am getting apparently incorrect "invalid suffix on integer constant" errors. I don't see this myself because I don't have gcc 3.0, but someone I work with does, and I'm able to reproduce the problem with CodeSourcery's Online Test Compilation.
>How-To-Repeat:
Go to CodeSourcery's Online Test Compilation (< http://www.codesourcery.com/gcc-compile.shtml >). Enter the following into the big text box:
int a[0x00E-0x00A];
Hit "compile with gcc". You should get the error message.
>Fix:
Add spaces around the minus sign.
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-07-30 20:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-30 20:27 c/3885: Incorrect "invalid suffix on integer constant" error aoliva
-- strict thread matches above, loose matches on Subject: below --
2001-07-30 14:56 keith.rollin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).