Open michaelghaben-presto opened 4 months ago
@llvm/issue-subscribers-clang-static-analyzer
Author: None (michaelghaben-presto)
Thanks for the report.
Reduces into this:
class a {};
a obj[1][2];
void top() {
for (auto [a, b] : obj) {
// empty
}
}
Crashes inside ExprEngineCXX:bindRequiredArrayElementToEnvironment()
, by hitting the llvm unreachable with message: ArrayInitLoopExpr contains unexpected source expression
.
We hit that because OVESrc
is this:
UnaryOperator 'a[2]' lvalue prefix '*' cannot overflow
`-ImplicitCastExpr 'a (*)[2]' <LValueToRValue>
`-DeclRefExpr 'a (*)[2]' lvalue Var '__begin1' 'a (*)[2]'
Which is neither a MemberExpr
nor a DeclRefExpr
.
A segfault was encountered while running
clang-tidy-18
to buildlibpqxx
. The error requested for a bug report to be submitted at this repo. The stack trace is as follows: