[llvm-bugs] [Bug 37209] New: Assertio failure in clang::ento::SValBuilder::evalBinOp
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Apr 23 01:10:48 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=37209
Bug ID: 37209
Summary: Assertio failure in
clang::ento::SValBuilder::evalBinOp
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: llvm-bugs at lists.llvm.org
$ cat /tmp/q.cc
class C {};
template <typename T>
static T& frame_entry(char *re_frame) {
return reinterpret_cast<T&>(*reinterpret_cast<int*>(re_frame));
}
void f(char *p, C *s) {
frame_entry<const C*>(p) != s;
}
$ clang-tidy -checks=-*,clang-analyzer* /tmp/q.cc --
assertion failed at lib/StaticAnalyzer/Core/SValBuilder.cpp:420 in
clang::ento::SVal
clang::ento::SValBuilder::evalBinOp(clang::ento::ProgramStateRef,
BinaryOperator::Opcode, clang::ento::SVal, clang::ento::SVal, clang::QualType):
op == BO_Add
@ 0x55b5c59df426 __assert_fail
@ 0x55b5c374085c clang::ento::SValBuilder::evalBinOp()
@ 0x55b5c37db199 clang::ento::ExprEngine::VisitBinaryOperator()
@ 0x55b5c37b60b2 clang::ento::ExprEngine::Visit()
@ 0x55b5c37b137e clang::ento::ExprEngine::ProcessStmt()
@ 0x55b5c37b109b clang::ento::ExprEngine::processCFGElement()
@ 0x55b5c37d5985 clang::ento::CoreEngine::HandlePostStmt()
@ 0x55b5c37d4ddd clang::ento::CoreEngine::ExecuteWorkList()
@ 0x55b5c350a06c (anonymous
namespace)::AnalysisConsumer::ActionExprEngine()
@ 0x55b5c3509be6 (anonymous namespace)::AnalysisConsumer::HandleCode()
@ 0x55b5c34f5bd4 (anonymous
namespace)::AnalysisConsumer::HandleTranslationUnit()
@ 0x55b5c3a8f78c clang::MultiplexConsumer::HandleTranslationUnit()
@ 0x55b5c3c312e3 clang::ParseAST()
--
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/20180423/c8c04d1f/attachment.html>
More information about the llvm-bugs
mailing list