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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits