aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl2.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2010-05-13 16:53:38 -0400
committerJason Merrill <jason@gcc.gnu.org>2010-05-13 16:53:38 -0400
commit3a11c6659187eb67fd9f2a28fc5e1dbda1e555a8 (patch)
tree205bfc38b3172fb070a52733bb7e123d7b9671e1 /gcc/cp/decl2.c
parenta2e66caf57a55c157600620d0f258115f5c9788b (diff)
downloadgcc-3a11c6659187eb67fd9f2a28fc5e1dbda1e555a8.zip
gcc-3a11c6659187eb67fd9f2a28fc5e1dbda1e555a8.tar.gz
gcc-3a11c6659187eb67fd9f2a28fc5e1dbda1e555a8.tar.bz2
typeck.c (cp_build_array_ref): Factor out from...
* typeck.c (cp_build_array_ref): Factor out from... (build_array_ref): ...here. Drop complain parm. (build_new_op): Adjust. * class.c (build_vtbl_ref_1): Adjust. * decl2.c (grok_array_decl): Adjust. * cp-tree.h: Adjust prototypes. From-SVN: r159377
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r--gcc/cp/decl2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index ae7c2ab..d811c9e 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -399,8 +399,7 @@ grok_array_decl (tree array_expr, tree index_exp)
if (array_expr == error_mark_node || index_exp == error_mark_node)
error ("ambiguous conversion for array subscript");
- expr = build_array_ref (input_location, array_expr, index_exp,
- tf_warning_or_error);
+ expr = build_array_ref (input_location, 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,