[Bug c++/20658] New: warning on minimum integer values

sstrasser at systemhaus-gruppe dot de gcc-bugzilla@gcc.gnu.org
Sun Mar 27 19:43:00 GMT 2005


long long a=-9223372036854775808ll;
int b=-2147483648;

test2.cpp:1:14: warning: integer constant is so large that it is unsigned

it is not.


test2.cpp:1: warning: this decimal constant is unsigned only in ISO C90
test2.cpp:2: warning: this decimal constant is unsigned only in ISO C90

huh? unsigned?



example with sizeof(int) == 4 && sizeof(long long) == 8

-- 
           Summary: warning on minimum integer values
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sstrasser at systemhaus-gruppe dot de
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20658



More information about the Gcc-bugs mailing list