This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/3885: Incorrect "invalid suffix on integer constant" error
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/3885: Incorrect "invalid suffix on integer constant" error
- From: keith dot rollin at corp dot palm dot com
- Date: 30 Jul 2001 21:49:36 -0000
- Reply-To: keith dot rollin at corp dot palm dot com
>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: