| Issue |
243448
|
| Summary |
[clang] recursive template instantiation in noexcept exhausts stack and crashes
|
| Labels |
clang
|
| Assignees |
|
| Reporter |
Pedda1712
|
The following:
```c++
template <class U>
struct O
{
template <class T>
void f() noexcept(f<T*>());
};
template<> template<> void O<void>::f<void>() { }
```
crashes on trunk (no trace with godbolt) (https://godbolt.org/z/6KedYffoM), since clang-6.
I get the following trace when running with the latest release (23.1.5) locally:
[trace.txt](https://github.com/user-attachments/files/34969361/trace.txt)
There's a lot of closely related issues (template recursions leading to crashes) like this already open (https://github.com/llvm/llvm-project/issues/142842, https://github.com/llvm/llvm-project/issues/24231, https://github.com/llvm/llvm-project/issues/88330). However, the traces indicate different causes for these. It may still be a duplicate though.
**This test case was generated by a fuzzer.**
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs