https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104291
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Patrick Palka <ppa...@gcc.gnu.org>: https://gcc.gnu.org/g:0eb06ee9a40a09d2f492461289d69aa39f757e66 commit r12-6949-g0eb06ee9a40a09d2f492461289d69aa39f757e66 Author: Patrick Palka <ppa...@redhat.com> Date: Mon Jan 31 14:15:01 2022 -0500 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.