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