[clang] [Clang] Fix a crash when checking the constraints of a self-referential concept (PR #208465)

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 10 02:04:28 PDT 2026


================
@@ -9303,6 +9306,7 @@ bool Sema::CheckConceptUseInDefinition(NamedDecl *Concept, SourceLocation Loc) {
       CE && !CE->isInvalidDecl() && !CE->hasDefinition()) {
     Diag(Loc, diag::err_recursive_concept) << CE;
     Diag(CE->getLocation(), diag::note_declared_at);
+    CE->setInvalidDecl();
----------------
cor3ntin wrote:

This is what this is doing

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


More information about the cfe-commits mailing list