<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 at StaticAnalyzer/Core/ExprEngine.cpp:2238 in virtual void clang::ento::ExprEngine::processEndOfFunction(...): I.first.getItem().getKind() == ConstructionContextItem::TemporaryDestructorKind || I.first.getItem().getKind() == Construction"
   href="https://bugs.llvm.org/show_bug.cgi?id=41300">41300</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failure at StaticAnalyzer/Core/ExprEngine.cpp:2238 in virtual void clang::ento::ExprEngine::processEndOfFunction(...): I.first.getItem().getKind() == ConstructionContextItem::TemporaryDestructorKind || I.first.getItem().getKind() == Construction
          </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>Linux
          </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
int a;
class b {
 public:
  b(int);
};
class c {
 protected:
  c(b d = a) : e(d) {}
  b e;
};
class f : virtual c {
 protected:
  f(b d = a) : c(d) {}
};
class g : f {
  g() {}
};
$ ./clang-tidy -checks="-*,clang-analyzer*" t.cc --
assertion failed at
llvm/tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp:2238 in virtual void
clang::ento::ExprEngine::processEndOfFunction(clang::ento::NodeBuilderContext
&, clang::ento::ExplodedNode *, const clang::ReturnStmt *):
I.first.getItem().getKind() == ConstructionContextItem::TemporaryDestructorKind
|| I.first.getItem().getKind() == ConstructionContextItem::ElidedDestructorKind
    @     0x563e7e1ef926  __assert_fail
    @     0x563e7c873720  clang::ento::ExprEngine::processEndOfFunction()
    @     0x563e7c85a9aa  clang::ento::CoreEngine::HandleBlockEdge()
    @     0x563e7c85a30e  clang::ento::CoreEngine::dispatchWorkItem()
    @     0x563e7c85a03c  clang::ento::CoreEngine::ExecuteWorkList()
    @     0x563e7c5b7b7b  (anonymous namespace)::AnalysisConsumer::HandleCode()
    @     0x563e7c5a1673  (anonymous
namespace)::AnalysisConsumer::HandleTranslationUnit()
    @     0x563e7cbd7e0c  clang::MultiplexConsumer::HandleTranslationUnit()
    @     0x563e7cd47dd4  clang::ParseAST()</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>