[PATCH] D140614: [C++20] Mark lambdas in lambda specifiers as dependent if necessary
Shafik Yaghmour via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 2 08:07:13 PST 2023
shafik added inline comments.
================
Comment at: clang/test/SemaCXX/lambda-unevaluated.cpp:127
+auto foo(int t) {
+ int(*f)(int) = [](auto t) -> decltype([=] { return t; } ()) { return t; };
+ return f;
----------------
cor3ntin wrote:
> I thought unevaluated lambdas could not have captures. that might be the issue here
[P0315](https://wg21.link/p0315) and says it should be allowed.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140614/new/
https://reviews.llvm.org/D140614
More information about the cfe-commits
mailing list