[Bug c/54587] New: Error with constant in arithmetic
bratsinot at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sat Sep 15 11:53:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54587
Bug #: 54587
Summary: Error with constant in arithmetic
Classification: Unclassified
Product: gcc
Version: 4.7.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: bratsinot@gmail.com
If i enter:
> printf("%x", 0x404e-0x4043);
GCC give me error:
> test.c: In function ‘main’:
> test.c:164:15: error: invalid suffix "-0x4043" on integer constant
If write:
> printf("%x", 0x404e - 0x4043);
everything all right.
More information about the Gcc-bugs
mailing list