================
@@ -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();
----------------
zyn0217 wrote:

But we have already returned invalid here, it's strange to me that CE ended up 
being evaluated

https://github.com/llvm/llvm-project/pull/208465
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to