Open yype opened 1 month ago
Hi there, clang++ crashes from an assertion failure on the following invalid test case:
a ( [] < -> > { struct { struct {} b [( { }} c
Tested version(s): 17.0.1 ~ trunk (assertions)
Example: https://godbolt.org/z/TsM7341G3
The test case was generated by a fuzzer.
@llvm/issue-subscribers-clang-frontend
Author: yype (yype)
Hi there, clang++ crashes from an assertion failure on the following invalid test case:
Tested version(s): 17.0.1 ~ trunk (assertions)
Example: https://godbolt.org/z/TsM7341G3
Stack dump
``` clang++: /root/llvm-project/clang/lib/Sema/SemaInit.cpp:7663: clang::ExprResult clang::InitializationSequence::Perform(clang::Sema&, const clang::InitializedEntity&, const clang::InitializationKind&, clang::MultiExprArg, clang::QualType*): Assertion `Kind.getKind() == InitializationKind::IK_Copy || Kind.isExplicitCast() || Kind.getKind() == InitializationKind::IK_DirectList' 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-diagnosticsThe test case was generated by a fuzzer.