<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 RegionStoreManager::bindStruct(...): CRD->isAggregate() && "Non-aggregates are constructed with a constructor!""
   href="https://bugs.llvm.org/show_bug.cgi?id=41142">41142</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failure in RegionStoreManager::bindStruct(...): CRD->isAggregate() && "Non-aggregates are constructed with a constructor!"
          </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>noqnoqneo@gmail.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>alexfh@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dcoughlin@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$ 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</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>