PR c++/92847 - C++20 comparison ambiguity with class template.
authorJason Merrill <jason@redhat.com>
Tue, 10 Dec 2019 20:12:50 +0000 (15:12 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 10 Dec 2019 20:12:50 +0000 (15:12 -0500)
commiteff66cd2aa4e6cbce289ce61aa903ed3ee4b52fa
treee7e2454d6723bc9e7cd9b780d1fc4abdf0820bbf
parent09b661cea17a144e68009ecdf61a92a05bf852dd
PR c++/92847 - C++20 comparison ambiguity with class template.

This testcase demonstrates that looking at cand->template_decl is not a good
starting place for finding the most general template, as it is only set for
primary templates.

* call.c (cand_parms_match): Handle all templated functions.

From-SVN: r279185
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/g++.dg/cpp2a/spaceship-rewrite5.C [new file with mode: 0644]