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

David Stone via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 22 20:02:10 PDT 2021


davidstone added a comment.

The previous commit is https://github.com/llvm/llvm-project/commit/a86bc00, and I don't understand enough of what the other code is doing to know if anything else needs to be fixed. I'd also like to add in a test to ensure this doesn't regress in the future, but I'm not sure of what the best place to put the test is. From https://bugs.llvm.org/show_bug.cgi?id=48250

  auto lambda = [](auto) {};
  
  template<typename T>
  void a(T x) { lambda.operator()(x); }
  
  void b() { a(0); }


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