diff options
author | Jason Merrill <jason@redhat.com> | 2011-06-01 16:37:20 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2011-06-01 16:37:20 -0400 |
commit | cd2c00bef35a04a929de9405d50a6c94ff88b8fc (patch) | |
tree | 5ac5b98310854dc7ce0cd17b24fbda806be57372 /gcc/cp | |
parent | 072339477c2005943492579576764494b07f1f06 (diff) | |
download | gcc-cd2c00bef35a04a929de9405d50a6c94ff88b8fc.zip gcc-cd2c00bef35a04a929de9405d50a6c94ff88b8fc.tar.gz gcc-cd2c00bef35a04a929de9405d50a6c94ff88b8fc.tar.bz2 |
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
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/cp/pt.c | 6 |
2 files changed, 3 insertions, 6 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index bf79bb6..b53331d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,8 @@ 2011-06-01 Jason Merrill <jason@redhat.com> + * 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 c1bee3e..c955777 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); |