[clang] [Clang] Rebuild lambda captures in default member initializers while skipping body (PR #196597)
Alexander Kornienko via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 21 06:11:56 PDT 2026
alexfh wrote:
@yuxuanchen1997 could you take a look at the clang crash report above (https://github.com/llvm/llvm-project/pull/196597#issuecomment-4997866573)? Please fix or revert this soon.
I've reduced the test case a bit more: https://godbolt.org/z/79fW6resP
```
struct A {
A();
A(const A&);
A &operator=(const A&);
};
template<typename T>
int F(const T& fn) { return 0; }
struct {
A a;
int n = F([q = a] {});
} s = {};
```
https://github.com/llvm/llvm-project/pull/196597
More information about the cfe-commits
mailing list