[Bug c++/11882] Uninitialised bool variables do not work properly

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Mon Aug 11 15:28:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From bangerth at dealii dot org  2003-08-11 15:28 -------
And as for the bit-patterns: gcc assumes that bools have only one bit set or cleared, so 
flipping it is enough to change from true to false. On the other hand, an expression like 
 (tmp ? "true" : "false") 
if implicitly converted to 
  ((int)tmp !=0 ? ...) 
so all bits in tmp are considered. 
 
W.



More information about the Gcc-bugs mailing list