This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]