[clang] [clang] fix member specializations of class and variable partial specializations (PR #200092)

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Thu May 28 00:38:00 PDT 2026


================
@@ -4703,8 +4699,8 @@ Sema::CheckVarTemplateId(VarTemplateDecl *Template, SourceLocation TemplateLoc,
     //   given (implicit) specialization of the enclosing class template, the
     //   primary member template and its other partial specializations are still
     //   considered for this specialization of the enclosing class template.
-    if (Template->getMostRecentDecl()->isMemberSpecialization() &&
-        !Partial->getMostRecentDecl()->isMemberSpecialization())
+    if (Template->isMemberSpecialization() &&
+        !Partial->isMemberSpecialization())
----------------
cor3ntin wrote:

Can you explain that change? It seems unrelated?

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


More information about the cfe-commits mailing list