This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11882] Uninitialised bool variables do not work properly
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Aug 2003 15:28:54 -0000
- Subject: [Bug c++/11882] Uninitialised bool variables do not work properly
- References: <20030811130338.11882.rescuer@polettix.it>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.