[Lldb-commits] [clang] [lldb] [Clang] Initial support for P2841 (Variable template and concept template parameters) (PR #150823)

Timm Baeder via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 29 07:07:49 PDT 2025


================
@@ -1071,12 +1074,27 @@ makeTemplateArgumentListInfo(Sema &S, TemplateIdAnnotation &TemplateId) {
 bool Sema::CheckTypeConstraint(TemplateIdAnnotation *TypeConstr) {
 
   TemplateName TN = TypeConstr->Template.get();
-  ConceptDecl *CD = cast<ConceptDecl>(TN.getAsTemplateDecl());
+  NamedDecl *CD = nullptr;
+  bool IsTypeConcept = false;
+  bool RequiresArguments = false;
+  if (TemplateTemplateParmDecl *TTP =
+          llvm::dyn_cast<TemplateTemplateParmDecl>(TN.getAsTemplateDecl())) {
----------------
tbaederr wrote:

```suggestion
  if (auto *TTP =
          dyn_cast<TemplateTemplateParmDecl>(TN.getAsTemplateDecl())) {
```

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


More information about the lldb-commits mailing list