This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/12767] New: False warning when using long long
- From: "takis at lumumba dot luc dot ac dot be" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Oct 2003 18:17:48 -0000
- Subject: [Bug c/12767] New: False warning when using long long
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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