| Issue |
243037
|
| Summary |
[clang] requires of templated lambda evaluation in nested lambda crashes trunk since 17
|
| Labels |
clang
|
| Assignees |
|
| Reporter |
Pedda1712
|
The following (--std=c++20):
```c++
void f(int) {}
void call() {
[]() {
[](const auto v)
requires([]<typename T>(T v) { return !v; }(0))
{ return f(v); }(0);
};
}
```
results in a crash on trunk (segfault, no trace on godbolt) (https://godbolt.org/z/o6eqP978f).
Has been crashing since 17, there with assertion (Assertion `!isNull() && "Cannot retrieve a NULL type pointer"' failed.).
Looks similar to https://github.com/llvm/llvm-project/issues/243012, however: This snippet started crashing in 17, the mentioned issue in 18.
**This test case was generated by a fuzzer.**
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs