[Bug c++/8715] '~' operator for unsigned char and conversion to bool

2008-08-06 Thread manu at gcc dot gnu dot org
--- Comment #12 from manu at gcc dot gnu dot org 2008-08-06 16:33 --- Fixed in GCC 4.4. -- manu at gcc dot gnu dot org changed: What|Removed |Added Status|NEW

[Bug c++/8715] '~' operator for unsigned char and conversion to bool

2008-08-06 Thread manu at gcc dot gnu dot org
--- Comment #11 from manu at gcc dot gnu dot org 2008-08-06 16:19 --- Subject: Bug 8715 Author: manu Date: Wed Aug 6 16:17:41 2008 New Revision: 138814 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=138814 Log: 2008-08-06 Manuel Lopez-Ibanez <[EMAIL PROTECTED]> PR 87

[Bug c++/8715] '~' operator for unsigned char and conversion to bool

2007-02-16 Thread manu at gcc dot gnu dot org
--- Comment #10 from manu at gcc dot gnu dot org 2007-02-16 15:33 --- (In reply to comment #9) > (In reply to comment #8) > > I meant that the warning is appropriate but > > the message is confusing because it is exposing that when doing > > > > bool x = ~b; > > > > we actually do >

[Bug c++/8715] '~' operator for unsigned char and conversion to bool

2007-01-26 Thread rearnsha at gcc dot gnu dot org
--- Comment #9 from rearnsha at gcc dot gnu dot org 2007-01-26 17:03 --- (In reply to comment #8) > I meant that the warning is appropriate but > the message is confusing because it is exposing that when doing > > bool x = ~b; > > we actually do > > bool x = (~b != 0); > Or, more

[Bug c++/8715] '~' operator for unsigned char and conversion to bool

2007-01-26 Thread manu at gcc dot gnu dot org
--- Comment #8 from manu at gcc dot gnu dot org 2007-01-26 16:56 --- (In reply to comment #7) > (In reply to comment #6) > > OK. I see now. This seems hard to fix, since it is exposing the current > > implementation of a conversion to bool. > > > > No, it's not the 'current implementat

[Bug c++/8715] '~' operator for unsigned char and conversion to bool

2007-01-26 Thread rearnsha at gcc dot gnu dot org
--- Comment #7 from rearnsha at gcc dot gnu dot org 2007-01-26 16:46 --- (In reply to comment #6) > OK. I see now. This seems hard to fix, since it is exposing the current > implementation of a conversion to bool. > No, it's not the 'current implementation', its the way the C and C++

[Bug c++/8715] '~' operator for unsigned char and conversion to bool

2007-01-26 Thread manu at gcc dot gnu dot org
--- Comment #6 from manu at gcc dot gnu dot org 2007-01-26 16:00 --- OK. I see now. This seems hard to fix, since it is exposing the current implementation of a conversion to bool. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8715