llvm-project
llvm-project copied to clipboard
[clang-tidy] modernize-use-noexcept crashes on template function with dynamic exception specification
This input is generated by a fuzzer. https://godbolt.org/z/Pzdf8xaax
struct S {
template <typename T> static void f() throw(typename T::X);
typedef decltype(f<S>()) X;
};
[1/2] Processing file /app/\.
Error while processing /app/\.
[2/2] Processing file <source>.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
Stack dump:
0. Program arguments: /clang-tidy --checks=-*,modernize-use-noexcept \\ <source>
1. <eof> parser at end of file
2. ASTMatcher: Processing 'modernize-use-noexcept' against:
CXXMethodDecl S::f : <<source>:2:27, col:62>
--- Bound Nodes Begin ---
funcDecl - { CXXMethodDecl S::f : <<source>:2:27, col:62> }
--- Bound Nodes End ---
Program terminated with signal: SIGSEGV
@llvm/issue-subscribers-clang-tidy
Author: Macro Terra (hongtaihu)
This input is generated by a fuzzer.
https://godbolt.org/z/Pzdf8xaax
```cxx
struct S {
template <typename T> static void f() throw(typename T::X);
typedef decltype(f<S>()) X;
};
```
[1/2] Processing file /app/\.
Error while processing /app/\.
[2/2] Processing file <source>.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
Stack dump:
0. Program arguments: /clang-tidy --checks=-*,modernize-use-noexcept \\ <source>
1. <eof> parser at end of file
2. ASTMatcher: Processing 'modernize-use-noexcept' against:
CXXMethodDecl S::f : <<source>:2:27, col:62>
--- Bound Nodes Begin ---
funcDecl - { CXXMethodDecl S::f : <<source>:2:27, col:62> }
--- Bound Nodes End ---
Program terminated with signal: SIGSEGV
@hongtaihu: Please don't forget to add crash label (or its more specific variant) for crashes.
Hi, I'd like to work on this issue. Could you assign it to me?