Constructing, destructing and returning a value of arbitrary type T causes static assertion failure inside LLVM's frontend #115658
Labels
clang:codegen
IR generation bugs: mangling, exceptions, etc.
confirmed
Verified by a second party
crash
Prefer [crash-on-valid] or [crash-on-invalid]
duplicate
Resolved as duplicate
Program: x86-64 clang 19.1.0 (assertions)
Example: Compiler Explorer
Log (same output inside the CE link above): clang-log.txt
Given the code:
LLVM frontend crashes with assertion failure:
Removing
return
keyword and leavingT{}.~T();
compiles successfully.The text was updated successfully, but these errors were encountered: