This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13295] for some integer types U, (~U(0)) < U(0) != U(~U(0)) < U(0)
- 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: 4 Dec 2003 08:12:33 -0000
- Subject: [Bug c++/13295] for some integer types U, (~U(0)) < U(0) != U(~U(0)) < U(0)
- References: <20031204055348.13295.gianni@mariani.ws>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-04 08:12 -------
Not a bug, (~((unsigned char)0)) gets promoted to an int (because unsigned char is smaller than
unsigned int) in both C and C++.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13295