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++/30274] [4.2/4.3 Regression] bool bit-field: wrong increment and decremenet



------- 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


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