This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/24976] New: simple hexadecimal number parsed as C99 hex float
- From: "bernie at develer dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Nov 2005 17:24:19 -0000
- Subject: [Bug c/24976] New: simple hexadecimal number parsed as C99 hex float
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
This testcase:
int a = 0xe+100;
Produces a diagnostic message that would surprise
most users:
foo.c:1:9: error: invalid suffix "+100" on integer constant
I'm not sure what the standard says about ambiguity
between the hex float notation and the regular + operator,
but many users are going to think of this behavior as
a parser bug.
--
Summary: simple hexadecimal number parsed as C99 hex float
Product: gcc
Version: 4.0.3
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bernie at develer dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24976