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