<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - Static analyzer crashes"
   href="https://llvm.org/bugs/show_bug.cgi?id=25426">25426</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Static analyzer crashes
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </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>normal
          </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>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$ cat sa4.cc
struct x0 {
  typedef int &x1;
};
class x2 {
public:
  x0::x1 operator[](unsigned);
};
class x3 {
  int x4();
  x2 x5;
};
struct x6 {
  char x7;
};
struct x8 : x6 {};
int x9;
int x3::x4() {
  x8 &x10 = reinterpret_cast<x8 &>(x5[x9]);
  x10.x7 = 2;
}
$ clang-tidy -checks=-*,clang-analyzer*,-clang-analyzer-alpha* sa4.cc --
-std=c++11
*** SIGSEGV (@0x80) received by PID 19053 (TID 19053); stack trace: ***
PC: @           0x9a730e  (unknown)  clang::LazyDefinitionDataPtr<>::update()
    @          0x19f930d        928  FailureSignalHandler()
    @     0x7fca4e275390       1520  __restore_rt
    @           0x9a6bf9         48  clang::CXXRecordDecl::bases()
    @          0x1366b3e        112  clang::ento::MemRegion::getAsOffset()
    @          0x1348b66       1232  (anonymous
namespace)::RegionStoreManager::removeSubRegionBindings()
    @          0x134787d        240  (anonymous
namespace)::RegionStoreManager::bind()
    @          0x1341058        128  (anonymous
namespace)::RegionStoreManager::Bind()
    @          0x1354012        160  clang::ento::ProgramState::bindLoc()
    @          0x1391715        512  clang::ento::ExprEngine::evalBind()
    @          0x1397149        224  clang::ento::ExprEngine::evalStore()
    @          0x13a83e8        816 
clang::ento::ExprEngine::VisitBinaryOperator()
    @          0x1391070       1248  clang::ento::ExprEngine::Visit()
    @          0x138d877        400  clang::ento::ExprEngine::ProcessStmt()
    @          0x138d50c         96 
clang::ento::ExprEngine::processCFGElement()
    @          0x139e89e        160 
clang::ento::CoreEngine::dispatchWorkItem()
    @          0x139e49a        192  clang::ento::CoreEngine::ExecuteWorkList()
    @           0xb45452       1120  (anonymous
namespace)::AnalysisConsumer::ActionExprEngine()
    @           0xb44f61        288  (anonymous
namespace)::AnalysisConsumer::HandleCode()
    @           0xb38274        480  (anonymous
namespace)::AnalysisConsumer::HandleTranslationUnit()
    @           0xd3b24c         48 
clang::MultiplexConsumer::HandleTranslationUnit()
    @           0xe43f82        144  clang::ParseAST()
    @           0xd3eeff         48  clang::FrontendAction::Execute()
    @           0xc7e282         96  clang::CompilerInstance::ExecuteAction()
    @           0xc36da5        352 
clang::tooling::FrontendActionFactory::runInvocation()
    @           0xc36bee         64 
clang::tooling::ToolInvocation::runInvocation()
    @           0xc366fa       1440  clang::tooling::ToolInvocation::run()
    @           0xc37c9a       1040  clang::tooling::ClangTool::run()
    @           0xa1a355       1952  clang::tidy::runClangTidy()
    @           0x435aa0       1344  main
    @     0x7fca4dcc8ce8        208  __libc_start_main
    @           0x434a69  (unknown)  _start
Segmentation fault (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>