]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: reorganize friend template matching [PR91618]
authorJason Merrill <jason@redhat.com>
Fri, 8 Apr 2022 17:48:25 +0000 (13:48 -0400)
committerJason Merrill <jason@redhat.com>
Fri, 29 Apr 2022 21:25:03 +0000 (17:25 -0400)
commite9d2adc17d0dbe46db67e1b618dea888d5c7aca3
tree5e62d35604cca84d2ef20450fc4c98cf468ec01b
parent4259c229b457361a9b5cdec157e058bf0c2c8b77
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.
gcc/cp/decl.cc
gcc/cp/decl2.cc
gcc/cp/friend.cc