[clang] [clang] fix matching constrained out-of-line definitions of class specialization member function templates (PR #192806)

Younan Zhang via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 18 19:23:56 PDT 2026


================
@@ -346,58 +346,56 @@ Response HandleFunction(Sema &SemaRef, const FunctionDecl *Function,
 Response HandleFunctionTemplateDecl(Sema &SemaRef,
                                     const FunctionTemplateDecl *FTD,
                                     MultiLevelTemplateArgumentList &Result) {
-  if (!isa<ClassTemplateSpecializationDecl>(FTD->getDeclContext())) {
----------------
zyn0217 wrote:

I'm surprised removing that if didn't break anything!

https://github.com/llvm/llvm-project/pull/192806


More information about the cfe-commits mailing list