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

Reply via email to