This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/12767] New: False warning when using long long


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]