Issue 242311
Summary [clang] template recursion in decltype leads to crash ?
Labels clang
Assignees
Reporter Pedda1712
    The following:
```c++
typedef decltype(nullptr) nullptr_t;
template <class T> struct A { };
template <typename T> auto g(T t) -> decltype(g(new A<T>))
{
  return nullptr;
}
template <> nullptr_t g(A<nullptr_t>)
{
 return nullptr;
}
```
results in a crash on trunk (segfault, no trace on godbolt) (https://godbolt.org/z/bd8scvvP3). Goes back to clang-6.

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