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: "s__nakayama at infoseek dot jp" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Feb 2007 02:25:07 -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 #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