[Bug c++/30274] [4.2/4.3 Regression] bool bit-field: wrong increment and decremenet
mmitchel at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Feb 19 20:58:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list