This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17452] ~ operator on bool type
- From: "rth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Sep 2004 10:14:10 -0000
- Subject: [Bug c++/17452] ~ operator on bool type
- References: <20040913080110.17452.bygoh@genting.com.my>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From rth at gcc dot gnu dot org 2004-09-13 10:14 -------
Not a bug.
b = ~b
=>
b = (bool)~(int)b
=>
b = (bool)~(int)true
=>
b = (bool)-2
=>
b = true
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17452