aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>2001-02-17 18:38:08 -0500
committerJason Merrill <jason@gcc.gnu.org>2001-02-17 18:38:08 -0500
commitd9579a59fdd14361cda948c5c5490542e1372317 (patch)
tree47f8f9aa5e3d1ec26637405d43761311124b39c5 /gcc
parent78adc5a03da661d89d7fab797ecb72d880cdc240 (diff)
downloadgcc-d9579a59fdd14361cda948c5c5490542e1372317.zip
gcc-d9579a59fdd14361cda948c5c5490542e1372317.tar.gz
gcc-d9579a59fdd14361cda948c5c5490542e1372317.tar.bz2
improve comment
From-SVN: r39806
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/call.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index d3e5ff3..f11929b 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)