Issue 243012
Summary [clang] requires of lambda evaluation crashes trunk since 18
Labels clang
Assignees
Reporter Pedda1712
    The following, compiled with --std=c++20:
```c++
void fn() {
    return [](auto ... a) requires([] {return true; }()) {}();
}
```
results in a crash on trunk (segfault, no trace on godbolt) (https://godbolt.org/z/jGcKE7cK5).

Has been crashing since 18, was accepted in 17 and 16. Was triggering an assertion in 15 (Assertion `isDependentContext() && "cannot iterate dependent diagnostics of non-dependent context"' failed.).

Perhaps similar to https://github.com/llvm/llvm-project/issues/57170 (same assertion in 15, also didn't crash 16/17)? Although that one does not crash since 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

Reply via email to