summaryrefslogtreecommitdiff
path: root/gcc/cp/typeck.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/typeck.c')
-rw-r--r--gcc/cp/typeck.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c
index cd058fa258e..8b3fec66250 100644
--- a/gcc/cp/typeck.c
+++ b/gcc/cp/typeck.c
@@ -3161,8 +3161,7 @@ cp_build_array_ref (location_t loc, tree array, tree idx,
break;
}
- bool non_lvalue
- = convert_vector_to_pointer_for_subscript (loc, &array, idx);
+ bool non_lvalue = convert_vector_to_array_for_subscript (loc, &array, idx);
if (TREE_CODE (TREE_TYPE (array)) == ARRAY_TYPE)
{