[clang] [clang] Fix @tparam warnings for concept template parameters (PR #199800)
Corentin Jabot via cfe-commits
cfe-commits at lists.llvm.org
Wed May 27 01:02:08 PDT 2026
================
@@ -857,7 +862,8 @@ bool Sema::isTemplateOrSpecialization() {
return false;
if (!ThisDeclInfo->IsFilled)
inspectThisDecl();
- return ThisDeclInfo->getTemplateKind() != DeclInfo::NotTemplate;
+ return ThisDeclInfo->getTemplateKind() != DeclInfo::NotTemplate ||
+ isa<ConceptDecl>(ThisDeclInfo->CommentDecl);
----------------
cor3ntin wrote:
I think the underlying issue is that `void DeclInfo::fill()` does not handle concepts. can you investigate that?
https://github.com/llvm/llvm-project/pull/199800
More information about the cfe-commits
mailing list