[clang] [Concepts] Add Decls from the outer scope of the current lambda for conversion function constraints (PR #83420)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 29 06:23:20 PST 2024


================
@@ -7976,7 +7976,8 @@ void Sema::AddConversionCandidate(
 
   if (Conversion->getTrailingRequiresClause()) {
     ConstraintSatisfaction Satisfaction;
-    if (CheckFunctionConstraints(Conversion, Satisfaction) ||
+    if (CheckFunctionConstraints(Conversion, Satisfaction, /*UsageLoc=*/{},
----------------
erichkeane wrote:

This isn't really specific to lambdas right?  Doing this on a function seems like it would do the wrong thing, right?

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


More information about the cfe-commits mailing list