c++: CWG2235 partial ordering and non-dependent types
authorJason Merrill <jason@redhat.com>
Tue, 5 May 2020 21:39:19 +0000 (17:39 -0400)
committerJason Merrill <jason@redhat.com>
Tue, 5 May 2020 21:40:18 +0000 (17:40 -0400)
commite42f342652981aa9181cc3ceb04e0eb715506764
treefe36b710321c53a5f0f802d943041065c1eb52c9
parent04b89192ace3a766a17374d5bef8fb19d9be2d7c
c++: CWG2235 partial ordering and non-dependent types

Issue 2235 removed the rule previously added for issues 1391/1847 that had
partial ordering completely ignore function parameters with no deducible
template parameters.

gcc/cp/ChangeLog
2020-05-05  Jason Merrill  <jason@redhat.com>

CWG 2235
* pt.c (more_specialized_fn): Do consider parms with no deducible
template parameters.
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/template/partial-order1.C
gcc/testsuite/g++.dg/template/partial-order2.C [new file with mode: 0644]