================
@@ -876,6 +876,11 @@ class Sema;
/// function pointer or reference (C++ [over.call.object]).
FunctionDecl *Function;
+ /// LambdaName - When the OverloadCandidate is for a
+ /// lambda's operator(), points to the declaration of
+ /// the lambda variable.
+ VarDecl *LambdaName{nullptr};
----------------
erichkeane wrote:
The pack lambda I was thinking about was something like:
```
template <typename ... Lambdas>
void bar(Lambdas... Ls) {
Ls()...;
}
void caller() {
bar([]{return 1;}, []{return 1.1;}, []{return "1";}); // where each are mildly
different/etc
```
It seems it would be weird to me to print 'Ls' for each, since as they are
distinct, particularly if that causes a diagnostic.
https://github.com/llvm/llvm-project/pull/101857
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits