c++: CONSTRUCTORs are non-deduced contexts [PR104291]
authorPatrick Palka <ppalka@redhat.com>
Mon, 31 Jan 2022 19:15:01 +0000 (14:15 -0500)
committerPatrick Palka <ppalka@redhat.com>
Mon, 31 Jan 2022 19:15:01 +0000 (14:15 -0500)
commit0eb06ee9a40a09d2f492461289d69aa39f757e66
tree4b906c91ec2850a1fbc51a0d9aa517c87b0e86ef
parent2cbe5dd54f15e88e0b42567319aa9c8e7bad7946
c++: CONSTRUCTORs are non-deduced contexts [PR104291]

PR c++/104291

gcc/cp/ChangeLog:

* pt.cc (for_each_template_parm_r) <case CONSTRUCTOR>: Clear
walk_subtrees if !include_nondeduced_p.  Simplify given that
cp_walk_subtrees already walks TYPE_PTRMEMFUNC_FN_TYPE_RAW.

gcc/testsuite/ChangeLog:

* g++.dg/template/partial20.C: New test.
gcc/cp/pt.cc
gcc/testsuite/g++.dg/template/partial20.C [new file with mode: 0644]