<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 - llvm_unreachable in clang::ento::ExprEngine::VisitCommonDeclRefExpr()"
href="https://bugs.llvm.org/show_bug.cgi?id=34404">34404</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llvm_unreachable in clang::ento::ExprEngine::VisitCommonDeclRefExpr()
</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 VisitCommonDeclRefExpr-crash.cc
struct a {
struct {
long b;
};
};
void c() { &a::b; }
$ clang-tidy -checks=-*,clang-analyzer* VisitCommonDeclRefExpr-crash.cc --
-std=c++11
Support for this Decl not implemented.
UNREACHABLE executed at
llvm/tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp:2087!
*** SIGABRT received by PID 14594 (TID 14594) from PID 14594; stack trace: ***
@ 0x7fdf7a59122f 304 abort
@ 0x468c3d0 80 llvm::llvm_unreachable_internal()
@ 0x2e172fd 960
clang::ento::ExprEngine::VisitCommonDeclRefExpr()
@ 0x2e13458 3888 clang::ento::ExprEngine::Visit()
@ 0x2e0fe44 528 clang::ento::ExprEngine::ProcessStmt()
@ 0x2e0faca 240
clang::ento::ExprEngine::processCFGElement()
@ 0x2e3da58 192
clang::ento::CoreEngine::HandleBlockEntrance()
@ 0x2e3d273 496
clang::ento::CoreEngine::dispatchWorkItem()
@ 0x2e3d0a8 544 clang::ento::CoreEngine::ExecuteWorkList()
@ 0x2138e05 80 clang::ento::ExprEngine::ExecuteWorkList()
@ 0x20e1802 1056 (anonymous
namespace)::AnalysisConsumer::ActionExprEngine()
@ 0x20e15c1 80 (anonymous
namespace)::AnalysisConsumer::RunPathSensitiveChecks()
@ 0x20e1285 288 (anonymous
namespace)::AnalysisConsumer::HandleCode()
@ 0x20d4963 416 (anonymous
namespace)::AnalysisConsumer::HandleDeclsCallGraph()
@ 0x20d2be7 336 (anonymous
namespace)::AnalysisConsumer::HandleTranslationUnit()
@ 0x25136ce 80
clang::MultiplexConsumer::HandleTranslationUnit()
@ 0x2f59506 288 clang::ParseAST()
@ 0x250109a 80 clang::ASTFrontendAction::ExecuteAction()
@ 0x2500b30 112 clang::FrontendAction::Execute()
@ 0x23192c2 464 clang::CompilerInstance::ExecuteAction()
@ 0x21eac92 464
clang::tooling::FrontendActionFactory::runInvocation()
@ 0x21eab33 160
clang::tooling::ToolInvocation::runInvocation()
@ 0x21e9426 1840 clang::tooling::ToolInvocation::run()
@ 0x21ebd20 1664 clang::tooling::ClangTool::run()
@ 0x1a5e574 1680 clang::tidy::runClangTidy()
@ 0x5d8eb1 2784 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>