summaryrefslogtreecommitdiff
path: root/gcc/cp/call.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/call.cc')
-rw-r--r--gcc/cp/call.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/call.cc b/gcc/cp/call.cc
index af92a961000..dafcdb08acb 100644
--- a/gcc/cp/call.cc
+++ b/gcc/cp/call.cc
@@ -9248,8 +9248,8 @@ build_over_call (struct z_candidate *cand, int flags, tsubst_flags_t complain)
}
else
{
- tree binfo = TYPE_BINFO (TREE_TYPE (first_arg));
- callee = build_baselink (binfo, binfo, fn, NULL_TREE);
+ callee = build_baselink (cand->conversion_path, cand->access_path,
+ fn, NULL_TREE);
callee = build_min (COMPONENT_REF, TREE_TYPE (fn),
first_arg, callee, NULL_TREE);
}