This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20658] New: warning on minimum integer values
- From: "sstrasser at systemhaus-gruppe dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Mar 2005 19:43:33 -0000
- Subject: [Bug c++/20658] New: warning on minimum integer values
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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