From cd2c00bef35a04a929de9405d50a6c94ff88b8fc Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 1 Jun 2011 16:37:20 -0400 Subject: [PATCH] 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 --- gcc/cp/ChangeLog | 3 +++ gcc/cp/pt.c | 6 ------ 2 files changed, 3 insertions(+), 6 deletions(-) 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); -- 2.30.2