aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/decl2.cc')
-rw-r--r--gcc/cp/decl2.cc17
1 files changed, 3 insertions, 14 deletions
diff --git a/gcc/cp/decl2.cc b/gcc/cp/decl2.cc
index 344e19e..0aa1e35 100644
--- a/gcc/cp/decl2.cc
+++ b/gcc/cp/decl2.cc
@@ -427,14 +427,8 @@ grok_array_decl (location_t loc, tree array_expr, tree index_exp,
return build_min_nt_loc (loc, ARRAY_REF, array_expr, index_exp,
NULL_TREE, NULL_TREE);
}
- array_expr = build_non_dependent_expr (array_expr);
- if (index_exp)
- index_exp = build_non_dependent_expr (index_exp);
- else
- {
- orig_index_exp_list = make_tree_vector_copy (*index_exp_list);
- make_args_non_dependent (*index_exp_list);
- }
+ if (!index_exp)
+ orig_index_exp_list = make_tree_vector_copy (*index_exp_list);
}
type = TREE_TYPE (array_expr);
@@ -5435,18 +5429,13 @@ build_offset_ref_call_from_tree (tree fn, vec<tree, va_gc> **args,
orig_args = make_tree_vector_copy (*args);
/* Transform the arguments and add the implicit "this"
- parameter. That must be done before the FN is transformed
- because we depend on the form of FN. */
- make_args_non_dependent (*args);
- object = build_non_dependent_expr (object);
+ parameter. */
if (TREE_CODE (TREE_TYPE (fn)) == METHOD_TYPE)
{
if (TREE_CODE (fn) == DOTSTAR_EXPR)
object = cp_build_addr_expr (object, complain);
vec_safe_insert (*args, 0, object);
}
- /* Now that the arguments are done, transform FN. */
- fn = build_non_dependent_expr (fn);
}
/* A qualified name corresponding to a bound pointer-to-member is