<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::ExprEngine::VisitCommonDeclRefExpr"
   href="https://bugs.llvm.org/show_bug.cgi?id=36416">36416</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failure in clang::ento::ExprEngine::VisitCommonDeclRefExpr
          </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>dcoughlin@apple.com
          </td>
        </tr>

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

        <tr>
          <th>CC</th>
          <td>ekarpenkov@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$ cat test-ExprEngine__VisitCommonDeclRefExpr.cc
class c {
  void f() {
    auto &bm = b;
    [&] { bm; }();
  }
  static int b;
};
$ clang-tidy -checks=-*,clang-analyzer*
test-ExprEngine__VisitCommonDeclRefExpr.cc -- -std=c++11
assertion failed at
llvm/tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp:2200 in void
clang::ento::ExprEngine::VisitCommonDeclRefExpr(const clang::Expr *, const
clang::NamedDecl *, clang::ento::ExplodedNode *, clang::ento::ExplodedNodeSet
&): VD->getType().isConstQualified()
    @     0x5645eb7a3806  __assert_fail
    @     0x5645ea2a09cb  clang::ento::ExprEngine::VisitCommonDeclRefExpr()
    @     0x5645ea29c3ad  clang::ento::ExprEngine::Visit()
    @     0x5645ea29879e  clang::ento::ExprEngine::ProcessStmt()
    @     0x5645ea29849b  clang::ento::ExprEngine::processCFGElement()
    @     0x5645ea2b954e  clang::ento::CoreEngine::HandleBlockEntrance()
    @     0x5645ea2b8dd0  clang::ento::CoreEngine::dispatchWorkItem()
    @     0x5645ea2b88dd  clang::ento::CoreEngine::ExecuteWorkList()
    @     0x5645e92e3dc3  (anonymous
namespace)::AnalysisConsumer::ActionExprEngine()
    @     0x5645e92e3946  (anonymous namespace)::AnalysisConsumer::HandleCode()
    @     0x5645e92cdcc4  (anonymous
namespace)::AnalysisConsumer::HandleTranslationUnit()</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>