================
@@ -136,6 +155,11 @@ namespace {
     /// do not contain unexpanded parameter packs.
     bool TraverseStmt(Stmt *S) {
       Expr *E = dyn_cast_or_null<Expr>(S);
+
+      llvm::SaveAndRestore _(InConstraint);
+      if (CurrentFunction && CurrentFunction->getTrailingRequiresClause() == S)
+        InConstraint = true;
+
----------------
cor3ntin wrote:

Do we have tests for a lambda (potentially constrained?) used in a requires 
clause of another function?

https://github.com/llvm/llvm-project/pull/86265
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to