From d9579a59fdd14361cda948c5c5490542e1372317 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Sat, 17 Feb 2001 18:38:08 -0500 Subject: [PATCH] improve comment From-SVN: r39806 --- gcc/cp/call.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/cp/call.c b/gcc/cp/call.c index d3e5ff39e53..f11929b095e 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -5212,7 +5212,12 @@ joust (cand1, cand2, warn) winner = more_specialized (TI_TEMPLATE (cand1->template), TI_TEMPLATE (cand2->template), DEDUCE_ORDER, - /* Never do unification on the 'this' parameter. */ + /* Tell the deduction code how many real function arguments we saw, + not counting the implicit 'this' argument. + + [temp.func.order]: The presence of unused ellipsis and default + arguments has no effect on the partial ordering of function + templates. */ TREE_VEC_LENGTH (cand1->convs) - DECL_NONSTATIC_MEMBER_FUNCTION_P (cand1->fn)); if (winner) -- 2.30.2