This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/13522] Erroneous handling of negated negative integer literals
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Dec 2003 16:50:29 -0000
- Subject: [Bug c/13522] Erroneous handling of negated negative integer literals
- References: <20031230153413.13522.sven@clio.in-berlin.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-30 16:50 -------
INT_MAX+1 is always unsigned and cannot have a sign so the first minus does not apply.
To form INT_MIN do -INT_MAX - 1.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13522