[PATCH] D66348: [ASTImporter] Do not look up lambda classes

Shafik Yaghmour via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 19 21:55:17 PDT 2019


shafik added a comment.

I am not enthusiastic about this solution but I need to think about it some more.

We can see that p0624r2 <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0624r2.pdf> added assignable lambdas:

  bool f1() {
      auto x = []{} = {}; auto x2 = x;
  
      return x == x2;
  }
  
  bool f2() {
      auto x = []{} = {};
      auto xb = []{} = {};
  
      return x == xb;
  }

see godbolt <https://godbolt.org/z/e2a9dV>

So I don't think this is a long-term solution, although I don't know what clang is doing to make this work yet.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D66348





More information about the cfe-commits mailing list