[llvm-bugs] [Bug 41142] New: Assertion failure in RegionStoreManager::bindStruct(...): CRD->isAggregate() && "Non-aggregates are constructed with a constructor!"
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Mar 19 09:38:00 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41142
Bug ID: 41142
Summary: Assertion failure in
RegionStoreManager::bindStruct(...):
CRD->isAggregate() && "Non-aggregates are constructed
with a constructor!"
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Static Analyzer
Assignee: noqnoqneo at gmail.com
Reporter: alexfh at google.com
CC: dcoughlin at apple.com, llvm-bugs at lists.llvm.org
$ cat t.cc
struct a {};
class b : a {};
b c() { b d{c()}; }
$ ./clang-tidy -checks="-*,clang-analyzer*" t.cc -- -std=c++17
assert.h assertion failed at
tools/clang/lib/StaticAnalyzer/Core/RegionStore.cpp:2362 in (anonymous
namespace)::RegionBindingsRef (anonym
ous namespace)::RegionStoreManager::bindStruct(RegionBindingsConstRef, const
clang::ento::TypedValueRegion *, clang::ento::SVal): CRD->isAggregate() &&
"Non-aggregates are constructed with a constructor!"
@ 0x559908170326 __assert_fail
@ 0x5599068d4854 (anonymous
namespace)::RegionStoreManager::bindStruct()
@ 0x5599068c93c8 (anonymous namespace)::RegionStoreManager::Bind()
@ 0x5599068b409f clang::ento::ProgramState::bindLoc()
@ 0x559906865935
clang::ento::ExprEngine::processPointerEscapedOnBind()
@ 0x55990685d4b3 clang::ento::ExprEngine::evalBind()
@ 0x559906872a43 clang::ento::ExprEngine::VisitDeclStmt()
@ 0x55990685c16f clang::ento::ExprEngine::Visit()
@ 0x559906858b1f clang::ento::ExprEngine::ProcessStmt()
@ 0x559906858808 clang::ento::ExprEngine::processCFGElement()
@ 0x55990684cb65 clang::ento::CoreEngine::HandlePostStmt()
@ 0x55990684bf5c clang::ento::CoreEngine::ExecuteWorkList()
@ 0x5599065b635b (anonymous namespace)::AnalysisConsumer::HandleCode()
@ 0x5599065a0135 (anonymous
namespace)::AnalysisConsumer::HandleTranslationUnit()
@ 0x559906bb7cbc clang::MultiplexConsumer::HandleTranslationUnit()
@ 0x559906d226d4 clang::ParseAST()
@ 0x559906b98a83 clang::FrontendAction::Execute()
@ 0x559906b31cd1 clang::CompilerInstance::ExecuteAction()
@ 0x559906a9cf61
clang::tooling::FrontendActionFactory::runInvocation()
@ 0x55990620cc07
clang::tidy::runClangTidy()::ActionFactory::runInvocation()
@ 0x559906a9ccca clang::tooling::ToolInvocation::runInvocation()
@ 0x559906a9c646 clang::tooling::ToolInvocation::run()
@ 0x559906a9ef22 clang::tooling::ClangTool::run()
@ 0x559906207ecf clang::tidy::runClangTidy()
@ 0x559902d47c45 main
--
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/20190319/b9a2888e/attachment-0001.html>
More information about the llvm-bugs
mailing list