Stack dump
```
clang++: /root/llvm-project/llvm/include/llvm/ADT/SmallVector.h:291: T& llvm::SmallVectorTemplateCommon >::operator[](llvm::SmallVectorTemplateCommon >::size_type) [with T = clang::sema::FunctionScopeInfo*; = void; llvm::SmallVectorTemplateCommon >::reference = clang::sema::FunctionScopeInfo*&; llvm::SmallVectorTemplateCommon >::size_type = long unsigned int]: Assertion `idx < size()' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: /opt/compiler-explorer/clang-assertions-trunk/bin/clang++ -gdwarf-4 -g -o /app/output.s -mllvm --x86-asm-syntax=intel -fno-verbose-asm -S --gcc-toolchain=/opt/compiler-explorer/gcc-snapshot -fcolor-diagnostics -fno-crash-diagnostics
Although the assertion failure is similar to those in #107840 and #69470, the test case provided in this issue triggers the failure only in versions 19.1.0 and the trunk. In contrast, the test cases in #107840 and #69470 both trigger the failure from version 17.0.1 to the trunk. Therefore, I believe the underlying root causes are different, which is why I am opening a new issue.
Hi there, clang++ crashes from an assertion failure on the following invalid test case:
Tested version(s): only 19.1.0 and trunk (assertions build).
Example: https://godbolt.org/z/E4qvYMb5x
Stack dump
``` clang++: /root/llvm-project/llvm/include/llvm/ADT/SmallVector.h:291: T& llvm::SmallVectorTemplateCommonAlthough the assertion failure is similar to those in #107840 and #69470, the test case provided in this issue triggers the failure only in versions 19.1.0 and the trunk. In contrast, the test cases in #107840 and #69470 both trigger the failure from version 17.0.1 to the trunk. Therefore, I believe the underlying root causes are different, which is why I am opening a new issue.
The test case was generated by a fuzzer.