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 #2 from pinskia at gcc dot gnu dot org  2006-09-30 08:20 -------
We also accept the following bad code:
typedef bool my_bool;
int main()
{
  my_bool b = false;
  b--;
  return 0;
}

----
So confirmed, and not a regression.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
      Known to fail|                            |2.95 3.2.3 3.4.0 4.0.0 4.2.0
                   |                            |4.0.4 4.1.2 3.0.4
   Last reconfirmed|0000-00-00 00:00:00         |2006-09-30 08:20:26
               date|                            |


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]