This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/63324] New: hexidecimal integer constant and addition
- From: "kargl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 22 Sep 2014 03:00:42 +0000
- Subject: [Bug c/63324] New: hexidecimal integer constant and addition
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63324
Bug ID: 63324
Summary: hexidecimal integer constant and addition
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: kargl at gcc dot gnu.org
#include <stdio.h>
int
main(void)
{
int i;
i = 0x3ffe+63; printf("%x\n", i);
return 0;
}
% gcc47 -c ~/tmp/a.c
/home/kargl/tmp/a.c: In function 'main':
/home/kargl/tmp/a.c:7:6: error: invalid suffix "+63" on integer constant
+ is a binary operator. 0x3ffe is a hexidecimal constant and 63
is a decimal constant.