aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/call.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r--gcc/cp/call.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index 5345f2b..7a72666 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -1924,7 +1924,8 @@ add_function_candidate (struct z_candidate **candidates,
for (i = 0; i < len; ++i)
{
- tree arg, argtype, to_type;
+ tree argtype, to_type;
+ tree arg;
conversion *t;
int is_this;
@@ -1934,8 +1935,9 @@ add_function_candidate (struct z_candidate **candidates,
if (i == 0 && first_arg != NULL_TREE)
arg = first_arg;
else
- arg = VEC_index (tree, args,
- i + skip - (first_arg != NULL_TREE ? 1 : 0));
+ arg = CONST_CAST_TREE (
+ VEC_index (tree, args,
+ i + skip - (first_arg != NULL_TREE ? 1 : 0)));
argtype = lvalue_type (arg);
is_this = (i == 0 && DECL_NONSTATIC_MEMBER_FUNCTION_P (fn)