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:20:26 -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 #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