summaryrefslogtreecommitdiffstats
path: root/gcc/cp
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2001-02-17 23:38:08 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2001-02-17 23:38:08 +0000
commit9cb2fd5880f418ac57c835f2da1b2f0241a5b2e7 (patch)
tree47f8f9aa5e3d1ec26637405d43761311124b39c5 /gcc/cp
parentd8d6496b22a882c3d58243beaf914eff72bb942f (diff)
downloadppe42-gcc-9cb2fd5880f418ac57c835f2da1b2f0241a5b2e7.tar.gz
ppe42-gcc-9cb2fd5880f418ac57c835f2da1b2f0241a5b2e7.zip
improve comment
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39806 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp')
-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 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)
OpenPOWER on IntegriCloud