[Bug c/12767] New: False warning when using long long
takis at lumumba dot luc dot ac dot be
gcc-bugzilla@gcc.gnu.org
Fri Oct 24 18:19:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12767
Summary: False warning when using long long
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: takis at lumumba dot luc dot ac dot be
CC: gcc-bugs at gcc dot gnu dot org
When using long long or unsigned long longs, the compiler issues a false
warning. It claims that the constant value assigned to the long long variable is
too large,
while the value is a 8 byte number.
I'm using Debian Sid with GCC 3.3.2 on a P4M with a 2.4.22-ck1 Linux kernel.
test.c:
unsigned long long v = 0x000FFFFFFFFFFFFF;
gcc -c test.c
test.c:1:warning: integer constant is too large for "long" type
More information about the Gcc-bugs
mailing list