<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Assertion failure in RegionStoreManager::getBindingForField()"
href="https://bugs.llvm.org/show_bug.cgi?id=37357">37357</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion failure in RegionStoreManager::getBindingForField()
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Static Analyzer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>noqnoqneo@gmail.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>alexfh@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dcoughlin@apple.com, ekarpenkov@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>A recently (after ~r331500) introduced issue.
$ cat test.c
a() {
const union { float b } c = {};
c.b;
}
$ ./clang-tidy -checks=-*,clang-analyzer* test.c --
assert.h assertion failed at include/clang/AST/Expr.h:3943 in const clang::Expr
*clang::InitListExpr::getInit(unsigned int) const: Init < getNumInits() &&
"Initializer access out of range!"
@ 0x56456472e026 __assert_fail
@ 0x56456244c71b (anonymous
namespace)::RegionStoreManager::getBindingForField()
@ 0x56456244bf44 (anonymous
namespace)::RegionStoreManager::getBinding()
@ 0x564562445ab4 (anonymous
namespace)::RegionStoreManager::getBinding()
@ 0x56456246eb46 clang::ento::ProgramState::getSVal()
@ 0x5645624c2ce2 clang::ento::ExprEngine::evalLoad()
@ 0x5645624e072c clang::ento::ExprEngine::VisitCast()
@ 0x5645624b8b8b clang::ento::ExprEngine::Visit()
@ 0x5645624b5c9e clang::ento::ExprEngine::ProcessStmt()
@ 0x5645624b59bb clang::ento::ExprEngine::processCFGElement()
@ 0x5645624d9ef5 clang::ento::CoreEngine::HandlePostStmt()
@ 0x5645624d934d clang::ento::CoreEngine::ExecuteWorkList()
@ 0x56456220d68c (anonymous
namespace)::AnalysisConsumer::ActionExprEngine()
@ 0x56456220d206 (anonymous namespace)::AnalysisConsumer::HandleCode()
@ 0x5645621f8f74 (anonymous
namespace)::AnalysisConsumer::HandleTranslationUnit()</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>