https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91618
--- Comment #13 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:e9d2adc17d0dbe46db67e1b618dea888d5c7aca3 commit r13-55-ge9d2adc17d0dbe46db67e1b618dea888d5c7aca3 Author: Jason Merrill <ja...@redhat.com> Date: Fri Apr 8 13:48:25 2022 -0400 c++: reorganize friend template matching [PR91618] The the different calling of check_explicit_specialization for class and namespace scope friends bothered me, so this patch combines them. PR c++/91618 PR c++/96604 gcc/cp/ChangeLog: * friend.cc (do_friend): Call check_explicit_specialization here. * decl.cc (grokdeclarator): Not here. * decl2.cc (check_classfn): Or here.