[PATCH] D99134: Lambdas are not necessarily locals. This resolves DR48250.

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 10 11:45:58 PST 2022


rsmith accepted this revision.
rsmith added a comment.

LGTM.

Please also add something like this as a unit test:

In D99134#2643441 <https://reviews.llvm.org/D99134#2643441>, @rsmith wrote:

>   template<typename T> int x = [](auto){ return T(); }.operator()(T());
>   int y = x<int>;


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D99134/new/

https://reviews.llvm.org/D99134



More information about the cfe-commits mailing list