This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c/3885: Incorrect "invalid suffix on integer constant" error

>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
>Originator:     Keith Rollin
>Release:        gcc 3.0

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.
Go to  CodeSourcery's Online Test Compilation (<>). Enter the following into the big text box:

int a[0x00E-0x00A];

Hit "compile with  gcc".  You should get the error message.
Add spaces around the minus sign.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]