pt.c (value_dependent_expression_p): Don't check value_dependent_expression_p on the operand.

* pt.c (value_dependent_expression_p) [NOEXCEPT_EXPR]: Don't
	check value_dependent_expression_p on the operand.

From-SVN: r171013
This commit is contained in:
Jason Merrill 2011-03-15 14:31:12 -04:00 committed by Jason Merrill
parent 17bc631c68
commit 6871351bb0
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,9 @@
2011-03-15 Jason Merrill <jason@redhat.com>
Core 1074
* pt.c (value_dependent_expression_p) [NOEXCEPT_EXPR]: Don't
check value_dependent_expression_p on the operand.
* semantics.c (push_cx_call_context): Return bool.
(cxx_eval_call_expression): Handle excess depth.

View File

@ -18143,9 +18143,7 @@ value_dependent_expression_p (tree expression)
case NOEXCEPT_EXPR:
expression = TREE_OPERAND (expression, 0);
/* FIXME why check value-dependency? */
return (type_dependent_expression_p (expression)
|| value_dependent_expression_p (expression));
return type_dependent_expression_p (expression);
case SCOPE_REF:
{