<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 clang::ento::bugreporter::getDerefExpr"
   href="https://bugs.llvm.org/show_bug.cgi?id=34373">34373</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failure in clang::ento::bugreporter::getDerefExpr
          </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>kremenek@apple.com
          </td>
        </tr>

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

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$ cat getDerefExpr-crash.c
fn1() {
  int *a = 0;
  (a + 0)[0];
}
$ clang-tidy -checks=-*,clang-analyzer-* getDerefExpr-crash.c --
assert.h assertion failed at
clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp:55 in const clang::Expr
*clang::ento::bugreporter::getDerefExpr(const clang::Stmt *):
B->isAssignmentOp()
    @          0x544749a  __assert_fail
    @          0x2dcfb20  clang::ento::bugreporter::getDerefExpr()
    @          0x2dcfc7c  clang::ento::bugreporter::getDerefExpr()
    @          0x2bda16a  (anonymous
namespace)::DereferenceChecker::reportBug()
    @          0x2bd981d  (anonymous
namespace)::DereferenceChecker::checkLocation()
    @          0x2bd9475  clang::ento::check::Location::_checkLocation<>()
    @          0x2e03e8d  clang::ento::CheckerFn<>::operator()()
    @          0x2df988f  (anonymous
namespace)::CheckLocationContext::runChecker()
    @          0x2df6bfe  expandGraphWithCheckers<>()
    @          0x2df6938  clang::ento::CheckerManager::runCheckersForLocation()
    @          0x2e1bdd5  clang::ento::ExprEngine::evalLocation()
    @          0x2e1bfcf  clang::ento::ExprEngine::evalLoadCommon()
    @          0x2e1af12  clang::ento::ExprEngine::evalLoad()
    @          0x2e4c8f5  clang::ento::ExprEngine::VisitCast()
    @          0x2e1352e  clang::ento::ExprEngine::Visit()
    @          0x2e0fe44  clang::ento::ExprEngine::ProcessStmt()
    @          0x2e0faca  clang::ento::ExprEngine::processCFGElement()
    @          0x2e3dc66  clang::ento::CoreEngine::HandlePostStmt()
    @          0x2e3d566  clang::ento::CoreEngine::dispatchWorkItem()
    @          0x2e3d0a8  clang::ento::CoreEngine::ExecuteWorkList()
    @          0x2138e05  clang::ento::ExprEngine::ExecuteWorkList()
    @          0x20e1802  (anonymous
namespace)::AnalysisConsumer::ActionExprEngine()
    @          0x20e15c1  (anonymous
namespace)::AnalysisConsumer::RunPathSensitiveChecks()
    @          0x20e1285  (anonymous namespace)::AnalysisConsumer::HandleCode()
    @          0x20d4963  (anonymous
namespace)::AnalysisConsumer::HandleDeclsCallGraph()
    @          0x20d2be7  (anonymous
namespace)::AnalysisConsumer::HandleTranslationUnit()
    @          0x25136ce  clang::MultiplexConsumer::HandleTranslationUnit()
    @          0x2f59506  clang::ParseAST()
    @          0x250109a  clang::ASTFrontendAction::ExecuteAction()
Aborted (core dumped)</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>