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++/29295] ++ operator with bool typedef increments or operator -- with bool typedef



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


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