[clang] [clang] deprecate frelaxed-template-template-args, make it on by default (PR #89807)

via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 24 14:48:23 PDT 2024


================
@@ -507,10 +507,62 @@ static TemplateDeductionResult DeduceNonTypeTemplateArgument(
       S, TemplateParams, NTTP, DeducedTemplateArgument(New), T, Info, Deduced);
 }
 
+static NamedDecl *DeduceTemplateArguments(Sema &S, NamedDecl *A,
+                                          TemplateArgument Default) {
+  switch (A->getKind()) {
+  case Decl::TemplateTypeParm: {
+    auto *T = cast<TemplateTypeParmDecl>(A);
+    // FIXME: DefaultArgument can't represent a pack.
+    if (T->isParameterPack())
----------------
cor3ntin wrote:

You have an example? 
But I think you are right, however I still do not understand the fixme.

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


More information about the cfe-commits mailing list