This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18460] New: -2147483648 not considered an "int"
- From: "jens dot maurer at gmx dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Nov 2004 10:45:30 -0000
- Subject: [Bug c++/18460] New: -2147483648 not considered an "int"
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Compiling
const int n = -2147483648;
results in the warning
minus-max.cc:1: warning: this decimal constant is unsigned only in ISO C90
which is wrong: The constant is exactly -2^31, which fits into a (32 bit) int,
thus no automatic conversions to larger types should occur.
--
Summary: -2147483648 not considered an "int"
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jens dot maurer at gmx dot net
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18460