[Bug c++/17452] ~ operator on bool type

rth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Sep 13 10:14:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list