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

via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 13 03:04:37 PDT 2024


================
@@ -691,11 +691,15 @@ bool Sema::CheckFunctionConstraints(const FunctionDecl *FD,
   // A lambda conversion operator has the same constraints as the call operator
   // and constraints checking relies on whether we are in a lambda call operator
   // (and may refer to its parameters), so check the call operator instead.
+  // Note that the declarations outside of the lambda should also be
+  // incorporated. Turning on the 'ForOverloadResolution' flag results in the
----------------
cor3ntin wrote:

```suggestion
  // considered. Turning on the 'ForOverloadResolution' flag results in the
```


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


More information about the cfe-commits mailing list