zwuis wrote:
Not sure if there are better approaches, but there are similar cases which
should be handled in the future if we land this patch.
```cpp
[&] { // nested lambdas, seems low priority?
[&] { use(std::move(x)); }(); // lambdas invalidating `x`
[&] { reinit(x); }(); // correctly handled by this patch
[&] { use(x); }(); // lambdas using `x`
}();
```
https://github.com/llvm/llvm-project/pull/173192
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits