This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30274] [4.2/4.3 Regression] bool bit-field: wrong increment and decremenet
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Feb 2007 20:57:54 -0000
- Subject: [Bug c++/30274] [4.2/4.3 Regression] bool bit-field: wrong increment and decremenet
- References: <bug-30274-10812@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from mmitchel at gcc dot gnu dot org 2007-02-19 20:57 -------
This is not a bug. The C++ standard says:
[expr.post.incr]
the value of the object is modified by adding 1 to it, unless the object is of
type bool, in which case it is set to true
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30274