From: Jason Merrill Date: Wed, 1 Jun 2011 20:37:20 +0000 (-0400) Subject: pt.c (build_non_dependent_expr): Remove special handling of REFERENCE_REF_P. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cd2c00bef35a04a929de9405d50a6c94ff88b8fc;p=gcc.git pt.c (build_non_dependent_expr): Remove special handling of REFERENCE_REF_P. * pt.c (build_non_dependent_expr): Remove special handling of REFERENCE_REF_P. From-SVN: r174545 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index bf79bb68917..b53331d5da1 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,8 @@ 2011-06-01 Jason Merrill + * pt.c (build_non_dependent_expr): Remove special handling of + REFERENCE_REF_P. + PR c++/44175 * pt.c (template_args_equal): Handle one arg being NULL_TREE. (deduction_tsubst_fntype): Handle excessive non-infinite recursion. diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index c1bee3e0552..c9557770ccc 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -19189,12 +19189,6 @@ build_non_dependent_expr (tree expr) TREE_OPERAND (expr, 0), build_non_dependent_expr (TREE_OPERAND (expr, 1))); - /* Keep dereferences outside the NON_DEPENDENT_EXPR so lvalue_kind - doesn't need to look inside. */ - if (REFERENCE_REF_P (expr)) - return convert_from_reference (build_non_dependent_expr - (TREE_OPERAND (expr, 0))); - /* If the type is unknown, it can't really be non-dependent */ gcc_assert (TREE_TYPE (expr) != unknown_type_node);