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: [C++ PATCH] Handle GNU style COND_EXPRs with omitted middle arg (PR c++/34270)


Jakub Jelinek wrote:

> 2007-11-29  Jakub Jelinek  <jakub@redhat.com>
> 
> 	PR c++/34270
> 	* tree.c (lvalue_p_1) <case COND_EXPR>: Handle x ?: y
> 	in templates.
> 	* typeck.c (is_bitfield_expr_with_lowered_type) <case COND_EXPR>:
> 	Likewise.
> 
> 	* g++.dg/template/cond7.C: New test.

I was thinking whether we should ever be using these predicates in
templates -- and if we do need to do so, whether these COND_EXPRs should
already have been expanded by duplicating the first operand -- but
anything along those lines is going to be complicated, and your patch
seems straightforward.

Patch OK.

-- 
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]