Bug 20658 - warning on minimum integer values
Summary: warning on minimum integer values
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 3.4.3
: P3 minor
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-27 19:43 UTC by Stefan Straßer
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Straßer 2005-03-27 19:43:32 UTC
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
Comment 1 Andrew Pinski 2005-03-27 21:46:00 UTC
No, the warning is correct - is an operator and not part of the number,