From: Jason Merrill Date: Tue, 15 Mar 2011 18:31:12 +0000 (-0400) Subject: pt.c (value_dependent_expression_p): Don't check value_dependent_expression_p on... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6871351bb0a13e548c66a27926076d20e06e6fd7;p=gcc.git 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 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 09ab014df09..f8249dfca09 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,9 @@ 2011-03-15 Jason Merrill + 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. diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 95b82ee579d..c8c10101820 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -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: {