This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28989] [4.0/4.1/4.2 Regression] post-increment of bool variable accepted as lvalue
- 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: 17 Aug 2007 22:15:13 -0000
- Subject: [Bug c++/28989] [4.0/4.1/4.2 Regression] post-increment of bool variable accepted as lvalue
- References: <bug-28989-5394@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from pinskia at gcc dot gnu dot org 2007-08-17 22:15 -------
Fixed on the trunk.
------- Comment #12 from pinskia at gcc dot gnu dot org 2007-08-17 22:15 -------
Subject: Bug 28989
Author: pinskia
Date: Fri Aug 17 22:14:47 2007
New Revision: 127603
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127603
Log:
2007-08-17 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR c++/28989
* tree.c (lvalue_p_1 <case SAVE_EXPR>): SAVE_EXPRs are never
lvalues.
2007-08-17 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR c++/28989
* g++.dg/expr/lval3.C: New test.
* g++.dg/expr/lval4.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/expr/lval3.C
trunk/gcc/testsuite/g++.dg/expr/lval4.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/tree.c
trunk/gcc/testsuite/ChangeLog
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work|3.4.0 3.0.4 3.3.3 3.2.3 |3.4.0 3.0.4 3.3.3 3.2.3
| |4.3.0
Summary|[4.0/4.1/4.2/4.3 Regression]|[4.0/4.1/4.2 Regression]
|post-increment of bool |post-increment of bool
|variable accepted as lvalue |variable accepted as lvalue
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28989