[llvm-bugs] [Bug 36416] New: Assertion failure in clang::ento::ExprEngine::VisitCommonDeclRefExpr
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Feb 16 17:08:04 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=36416
Bug ID: 36416
Summary: Assertion failure in
clang::ento::ExprEngine::VisitCommonDeclRefExpr
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Static Analyzer
Assignee: dcoughlin at apple.com
Reporter: alexfh at google.com
CC: ekarpenkov at apple.com, llvm-bugs at lists.llvm.org
$ cat test-ExprEngine__VisitCommonDeclRefExpr.cc
class c {
void f() {
auto &bm = b;
[&] { bm; }();
}
static int b;
};
$ clang-tidy -checks=-*,clang-analyzer*
test-ExprEngine__VisitCommonDeclRefExpr.cc -- -std=c++11
assertion failed at
llvm/tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp:2200 in void
clang::ento::ExprEngine::VisitCommonDeclRefExpr(const clang::Expr *, const
clang::NamedDecl *, clang::ento::ExplodedNode *, clang::ento::ExplodedNodeSet
&): VD->getType().isConstQualified()
@ 0x5645eb7a3806 __assert_fail
@ 0x5645ea2a09cb clang::ento::ExprEngine::VisitCommonDeclRefExpr()
@ 0x5645ea29c3ad clang::ento::ExprEngine::Visit()
@ 0x5645ea29879e clang::ento::ExprEngine::ProcessStmt()
@ 0x5645ea29849b clang::ento::ExprEngine::processCFGElement()
@ 0x5645ea2b954e clang::ento::CoreEngine::HandleBlockEntrance()
@ 0x5645ea2b8dd0 clang::ento::CoreEngine::dispatchWorkItem()
@ 0x5645ea2b88dd clang::ento::CoreEngine::ExecuteWorkList()
@ 0x5645e92e3dc3 (anonymous
namespace)::AnalysisConsumer::ActionExprEngine()
@ 0x5645e92e3946 (anonymous namespace)::AnalysisConsumer::HandleCode()
@ 0x5645e92cdcc4 (anonymous
namespace)::AnalysisConsumer::HandleTranslationUnit()
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180217/46f1705d/attachment.html>
More information about the llvm-bugs
mailing list