<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 - Crash in clang::ento::ExprEngine::getRegionForConstructedObject"
href="https://bugs.llvm.org/show_bug.cgi?id=37139">37139</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Crash in clang::ento::ExprEngine::getRegionForConstructedObject
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>dcoughlin@apple.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>alexfh@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>$ cat test-clang__ento__ExprEngine__getRegionForConstructedObject.cc
class a {};
struct b {
long c;
const a &d;
};
void fn1() { b e{0, a()}; }
$ ./clang-tidy -checks=-*,clang-analyzer-core*
test-clang__ento__ExprEngine__getRegionForConstructedObject.cc -- -std=c++11
assert.h assertion failed at
tools/clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp:187 in const
clang::ento::MemRegion
*clang::ento::ExprEngine::getRegionForConstructedObject(const
clang::CXXConstructExpr *, clang::ento::ExplodedNode *, const
clang::ConstructionContext *, clang::ento::ExprEngine::EvalCallOptions &):
VD->getType()->isReferenceType()
@ 0x564ea13a63f6 __assert_fail
@ 0x564e9f18c2e9
clang::ento::ExprEngine::getRegionForConstructedObject()
@ 0x564e9f18c6e2 clang::ento::ExprEngine::VisitCXXConstructExpr()
@ 0x564e9f15d5c7 clang::ento::ExprEngine::Visit()
@ 0x564e9f159fae clang::ento::ExprEngine::ProcessStmt()
@ 0x564e9f159ccb clang::ento::ExprEngine::processCFGElement()
@ 0x564e9f17f155 clang::ento::CoreEngine::HandlePostStmt()
@ 0x564e9f17e40d clang::ento::CoreEngine::ExecuteWorkList()
@ 0x564e9eeac20c (anonymous
namespace)::AnalysisConsumer::ActionExprEngine()
@ 0x564e9eeabd86 (anonymous namespace)::AnalysisConsumer::HandleCode()
@ 0x564e9ee97af4 (anonymous
namespace)::AnalysisConsumer::HandleTranslationUnit()
@ 0x564e9f43fb5c clang::MultiplexConsumer::HandleTranslationUnit()
@ 0x564e9f5e13a4 clang::ParseAST()
@ 0x564e9f439013 clang::FrontendAction::Execute()
@ 0x564e9f2db381 clang::CompilerInstance::ExecuteAction()
@ 0x564e9f1e2411
clang::tooling::FrontendActionFactory::runInvocation()
@ 0x564e9f1e217a clang::tooling::ToolInvocation::runInvocation()
@ 0x564e9f1e1946 clang::tooling::ToolInvocation::run()
@ 0x564e9f1e40c3 clang::tooling::ClangTool::run()
@ 0x564e9eb4e88f clang::tidy::runClangTidy()</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>