[Bug c/63324] New: hexidecimal integer constant and addition
kargl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Sep 22 03:00:00 GMT 2014
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.
More information about the Gcc-bugs
mailing list