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] Handle TRUTH_{AND,OR,XOR}_EXPR in dump_expr (PR c++/34965)


On Fri, Jan 25, 2008 at 03:48:33PM +0100, Paolo Bonzini wrote:
> Jakub Jelinek wrote:
> >These 3 can be created by fold, if TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR
> >or {EQ,NE}_EXPR arguments are simple enough truthvalues.
> >
> >Regtested on x86_64-linux, ok for trunk?
> >
> >2008-01-25  Jakub Jelinek  <jakub@redhat.com>
> >
> >	PR c++/34965
> >	* error.c (dump_expr): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
> >	and TRUTH_XOR_EXPR.
> >
> >	* g++.dg/other/error24.C: New test.
> 
> Maybe we should assert that the RHS does not have side effects?

I think that's an overkill.

	Jakub


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