http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46680

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2010-11-27 
14:53:49 UTC ---
(In reply to comment #2)
> My suggestion is directed specifically to -O0.

If you want optimised code then use optimisation.  

> I also know about UB. The strange behavior I'm referring to regards the
> compiler implementation rather than the language specification. I just looked
> for this, because I expected a consistent behavior in gcc for non-initialized
> bool values in that matter.

No. You cannot expect undefined behaviour to be consistent.

Reply via email to