[Bug c++/104291] [12 Regression] gcc accepts template argument involves template parameter(s)
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 31 19:15:36 GMT 2022
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 <ppalka@gcc.gnu.org>:
https://gcc.gnu.org/g:0eb06ee9a40a09d2f492461289d69aa39f757e66
commit r12-6949-g0eb06ee9a40a09d2f492461289d69aa39f757e66
Author: Patrick Palka <ppalka@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.
More information about the Gcc-bugs
mailing list