aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/call.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2010-05-13 01:05:21 -0400
committerJason Merrill <jason@gcc.gnu.org>2010-05-13 01:05:21 -0400
commit73647d75199a9e5c8a0e2e049d1f70b86d43c8f4 (patch)
treeae6e098ef30e5cb2e485e6f85c2988a71cb36c4b /gcc/cp/call.c
parent5116acc6fefb0a16d644defe9322a7fcee768c8c (diff)
downloadgcc-73647d75199a9e5c8a0e2e049d1f70b86d43c8f4.zip
gcc-73647d75199a9e5c8a0e2e049d1f70b86d43c8f4.tar.gz
gcc-73647d75199a9e5c8a0e2e049d1f70b86d43c8f4.tar.bz2
typeck.c (build_array_ref): Take complain parm.
* typeck.c (build_array_ref): Take complain parm. * cp-tree.h: Add it to prototype. * call.c (build_new_op): Pass it. * class.c (build_vtbl_ref): Pass it. * decl2.c (grok_array_decl): Pass it. From-SVN: r159351
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r--gcc/cp/call.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index 0f62059..5f8aeea 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -4517,7 +4517,7 @@ build_new_op (enum tree_code code, int flags, tree arg1, tree arg2, tree arg3,
return cp_build_unary_op (code, arg1, candidates != 0, complain);
case ARRAY_REF:
- return build_array_ref (input_location, arg1, arg2);
+ return build_array_ref (input_location, arg1, arg2, complain);
case MEMBER_REF:
return build_m_component_ref (cp_build_indirect_ref (arg1, RO_NULL,