From mboxrd@z Thu Jan 1 00:00:00 1970 From: keith.rollin@corp.palm.com To: gcc-gnats@gcc.gnu.org Subject: c/3885: Incorrect "invalid suffix on integer constant" error Date: Mon, 30 Jul 2001 14:56:00 -0000 Message-id: <20010730214936.24853.qmail@sourceware.cygnus.com> X-SW-Source: 2001-07/msg00801.html List-Id: >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: