diff options
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r-- | gcc/cp/decl2.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index eacab5f283b..00105a6d2a6 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -369,7 +369,8 @@ grok_array_decl (tree array_expr, tree index_exp) { if (type_dependent_expression_p (array_expr) || type_dependent_expression_p (index_exp)) - return build_min_nt (ARRAY_REF, array_expr, index_exp); + return build_min_nt (ARRAY_REF, array_expr, index_exp, + NULL_TREE, NULL_TREE); array_expr = build_non_dependent_expr (array_expr); index_exp = build_non_dependent_expr (index_exp); } @@ -426,8 +427,8 @@ grok_array_decl (tree array_expr, tree index_exp) expr = build_array_ref (array_expr, index_exp); } if (processing_template_decl && expr != error_mark_node) - return build_min_non_dep (ARRAY_REF, expr, - orig_array_expr, orig_index_exp); + return build_min_non_dep (ARRAY_REF, expr, orig_array_expr, orig_index_exp, + NULL_TREE, NULL_TREE); return expr; } @@ -1175,7 +1176,8 @@ build_anon_union_vars (tree object) cp_pedwarn_at ("protected member `%#D' in anonymous union", field); if (processing_template_decl) - ref = build_min_nt (COMPONENT_REF, object, DECL_NAME (field)); + ref = build_min_nt (COMPONENT_REF, object, + DECL_NAME (field), NULL_TREE); else ref = build_class_member_access_expr (object, field, NULL_TREE, false); |