This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18460] -2147483648 not considered an "int"
- From: "schwab at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Nov 2004 13:41:15 -0000
- Subject: [Bug c++/18460] -2147483648 not considered an "int"
- References: <20041113104519.18460.jens.maurer@gmx.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From schwab at suse dot de 2004-11-13 13:41 -------
There are no negative constants/literals in C and C++. 2147483648 is not
representable in (32-bit) int or long, so its type is unsigned in C90, but in
C++98 the behaviour is undefined.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18460