This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29295] ++ operator with bool typedef increments or operator -- with bool typedef
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Sep 2006 08:18:51 -0000
- Subject: [Bug c++/29295] ++ operator with bool typedef increments or operator -- with bool typedef
- References: <bug-29295-638@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-09-30 08:18 -------
/* Forbid using -- on `bool'. */
if (TREE_TYPE (arg) == boolean_type_node)
That is wrong.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid, wrong-code
Summary|++ operator with bool |++ operator with bool
|typedef increments |typedef increments or
| |operator -- with bool
| |typedef
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29295