[clang] [Clang] Fix synthesis of alias CTAD constraints (PR #223340)

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 15 01:37:14 PDT 2026


================
@@ -998,33 +998,42 @@ buildAssociatedConstraints(Sema &SemaRef, FunctionTemplateDecl *F,
           AliasTemplate->getInstantiatedFromMemberTemplate())
     AdjustDepth = PrimaryTemplate->getTemplateDepth();
 
+  // FIXME: We're rebuilding the synthesized template parameter list again
+  // Consider reuse the template parameter from its caller.
+
   // We rebuild all template parameters with the uninstantiated depth, and
   // build template arguments refer to them.
----------------
cor3ntin wrote:

These comments are pretty similar - and given we are changing the depth, realistically i don't think there  is anything we could reuse

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


More information about the cfe-commits mailing list