[clang] [clang] Fix partial specialization matching for NTTPs of placeholder type (PR #225239)

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 23 01:22:59 PDT 2026


================
@@ -8040,7 +8040,10 @@ bool ASTContext::isSameTemplateArgument(const TemplateArgument &Arg1,
            getCanonicalTemplateName(Arg2.getAsTemplateOrTemplatePattern());
 
   case TemplateArgument::Integral:
-    return llvm::APSInt::isSameValue(Arg1.getAsIntegral(),
+    // The types have to match as well as the values:
+    // C++ [temp.type]p2
----------------
cor3ntin wrote:

Can you add a specific c++ version and an exact quotes? temp.types does not exists in c++26

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


More information about the cfe-commits mailing list