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 #7 from s__nakayama at infoseek dot jp  2007-02-21 02:25 -------
(In reply to comment #6)
> 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

I do not understand why this is not a bug. 
Will someone explain why this is not a bug?


-- 


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]