mirror of git://gcc.gnu.org/git/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
This commit is contained in:
parent
072339477c
commit
cd2c00bef3
|
@ -1,5 +1,8 @@
|
||||||
2011-06-01 Jason Merrill <jason@redhat.com>
|
2011-06-01 Jason Merrill <jason@redhat.com>
|
||||||
|
|
||||||
|
* pt.c (build_non_dependent_expr): Remove special handling of
|
||||||
|
REFERENCE_REF_P.
|
||||||
|
|
||||||
PR c++/44175
|
PR c++/44175
|
||||||
* pt.c (template_args_equal): Handle one arg being NULL_TREE.
|
* pt.c (template_args_equal): Handle one arg being NULL_TREE.
|
||||||
(deduction_tsubst_fntype): Handle excessive non-infinite recursion.
|
(deduction_tsubst_fntype): Handle excessive non-infinite recursion.
|
||||||
|
|
|
@ -19189,12 +19189,6 @@ build_non_dependent_expr (tree expr)
|
||||||
TREE_OPERAND (expr, 0),
|
TREE_OPERAND (expr, 0),
|
||||||
build_non_dependent_expr (TREE_OPERAND (expr, 1)));
|
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 */
|
/* If the type is unknown, it can't really be non-dependent */
|
||||||
gcc_assert (TREE_TYPE (expr) != unknown_type_node);
|
gcc_assert (TREE_TYPE (expr) != unknown_type_node);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue