This is the mail archive of the gcc-patches@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]

Re: [PATCH] Fix PR C++/28989, post-increment of bool is wrongly considered a lvalue


Andrew Pinski wrote:
On Wed, 2006-09-13 at 18:22 -0700, Andrew Pinski wrote:
ChangeLog:

	* c-common.c (boolean_increment <case POSTINCREMENT_EXPR>):
	Wrap the SAVE_EXPR with a NON_LVALUE_EXPR.

testsuite/ChangeLog:

* g++.dg/expr/lval4.C: new test.

Does it work to make lvaluep look through SAVE_EXPRs to the thing saved, instead?


--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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