Issue 242297
Summary [clang] decltype of empty lambda in templated function causes crash
Labels clang
Assignees
Reporter Pedda1712
    The following:
```c++
template <typename> void fn1() {
  [] (decltype([]{})) {};
}
void fn2() { fn1<void>; }
```
results in a crash on trunk (segfault, no trace on godbolt) (https://godbolt.org/z/j7W1cMnh3). Goes back to clang-10.

Potentially related to https://github.com/llvm/llvm-project/issues/200648, but no trace is produced here.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to