<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 RetainSummaryManager::getFunctionSummary()"
   href="https://bugs.llvm.org/show_bug.cgi?id=34403">34403</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failure in RetainSummaryManager::getFunctionSummary()
          </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>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$ cat getFunctionSummary-crash.cc
class a {
  void b() const;
};
struct c {
  static int _();
};
void a::b() const { c::_(); }
$ clang-tidy -checks=-*,clang-analyzer* getFunctionSummary-crash.cc --
-std=c++11
assert.h assertion failed at llvm/include/llvm/ADT/StringRef.h:239 in char
llvm::StringRef::operator[](size_t) const: Index < Length && "Invalid index!"
    @          0x5450cda  __assert_fail
    @          0x1e8ce3a  llvm::StringRef::operator[]()
    @          0x2890e45  (anonymous
namespace)::RetainSummaryManager::getFunctionSummary()
    @          0x28aa21c  (anonymous
namespace)::RetainSummaryManager::getSummary()
    @          0x28aa135  (anonymous
namespace)::RetainCountChecker::checkPostCall()
    @          0x28aa0c0  clang::ento::check::PostCall::_checkCall<>()
    @          0x2e0c362  clang::ento::CheckerFn<>::operator()()
    @          0x2e020fa  (anonymous namespace)::CheckCallContext::runChecker()
    @          0x2dff0ee  expandGraphWithCheckers<>()
    @          0x2dfee40 
clang::ento::CheckerManager::runCheckersForCallEvent()
    @          0x2e60638  clang::ento::CheckerManager::runCheckersForPostCall()
    @          0x2e62c86  clang::ento::ExprEngine::evalCall()
    @          0x2e62b1b  clang::ento::ExprEngine::VisitCallExpr()
    @          0x2e1b904  clang::ento::ExprEngine::Visit()
    @          0x2e18824  clang::ento::ExprEngine::ProcessStmt()
    @          0x2e184aa  clang::ento::ExprEngine::processCFGElement()
    @          0x2e46646  clang::ento::CoreEngine::HandlePostStmt()
    @          0x2e45f46  clang::ento::CoreEngine::dispatchWorkItem()
    @          0x2e45a88  clang::ento::CoreEngine::ExecuteWorkList()
    @          0x2140055  clang::ento::ExprEngine::ExecuteWorkList()
    @          0x20e8a52  (anonymous
namespace)::AnalysisConsumer::ActionExprEngine()
    @          0x20e8811  (anonymous
namespace)::AnalysisConsumer::RunPathSensitiveChecks()
    @          0x20e84d5  (anonymous namespace)::AnalysisConsumer::HandleCode()
    @          0x20dbbb3  (anonymous
namespace)::AnalysisConsumer::HandleDeclsCallGraph()
    @          0x20d9e37  (anonymous
namespace)::AnalysisConsumer::HandleTranslationUnit()
    @          0x251be2e  clang::MultiplexConsumer::HandleTranslationUnit()
    @          0x2f61426  clang::ParseAST()
    @          0x25097fa  clang::ASTFrontendAction::ExecuteAction()
    @          0x2509290  clang::FrontendAction::Execute()</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>