<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 clang::ento::ExprEngine::VisitCompoundLiteralExpr"
href="https://bugs.llvm.org/show_bug.cgi?id=34766">34766</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion failure in clang::ento::ExprEngine::VisitCompoundLiteralExpr
</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>ganna@apple.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>alexfh@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dcoughlin@apple.com, kremenek@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>$ cat test-VisitCompoundLiteralExpr.cc
namespace std {
template <class>
class initializer_list {};
} // namespace std
class a {
public:
a(char *);
};
template <typename b>
int c(std::initializer_list<b>, a);
void e() { int d = c((std::initializer_list<int>){d}, ""); }
$ clang-tidy -checks=-*,clang-analyzer-core* test-VisitCompoundLiteralExpr.cc
-- -std=c++11
assertion failed at
llvm/tools/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp:536 in void
clang::ento::ExprEngine::VisitCompoundLiteralExpr(const
clang::CompoundLiteralExpr *, clang::ento::ExplodedNode *,
clang::ento::ExplodedNodeSet &): isa<InitListExpr>(Init)
@ 0x530f90a __assert_fail
@ 0x1caa3a4 clang::ento::ExprEngine::VisitCompoundLiteralExpr()
@ 0x1c6edea clang::ento::ExprEngine::Visit()
@ 0x1c6ba21 clang::ento::ExprEngine::ProcessStmt()
@ 0x1c6b6da clang::ento::ExprEngine::processCFGElement()
@ 0x1c99d26 clang::ento::CoreEngine::HandlePostStmt()
@ 0x1c99626 clang::ento::CoreEngine::dispatchWorkItem()
@ 0x1c99188 clang::ento::CoreEngine::ExecuteWorkList()
@ 0xf8c225 clang::ento::ExprEngine::ExecuteWorkList()
@ 0xf338f2 (anonymous
namespace)::AnalysisConsumer::ActionExprEngine()
@ 0xf336b1 (anonymous
namespace)::AnalysisConsumer::RunPathSensitiveChecks()
@ 0xf33375 (anonymous namespace)::AnalysisConsumer::HandleCode()
@ 0xf26a53 (anonymous
namespace)::AnalysisConsumer::HandleDeclsCallGraph()
@ 0xf24cd7 (anonymous
namespace)::AnalysisConsumer::HandleTranslationUnit()
@ 0x135e04e clang::MultiplexConsumer::HandleTranslationUnit()
@ 0x1db6d66 clang::ParseAST()
@ 0x134b8ea clang::ASTFrontendAction::ExecuteAction()
@ 0x134b380 clang::FrontendAction::Execute()
@ 0x1161602 clang::CompilerInstance::ExecuteAction()
@ 0x102b612
clang::tooling::FrontendActionFactory::runInvocation()
@ 0x102b4b3 clang::tooling::ToolInvocation::runInvocation()
@ 0x1029d76 clang::tooling::ToolInvocation::run()
@ 0x102c6a0 clang::tooling::ClangTool::run()
@ 0x894d74 clang::tidy::runClangTidy()
@ 0x5df191 clang::tidy::clangTidyMain()</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>