<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 --- - Assertion failed `!haveRefTypeParam || DV->getAs<Loc>()'"
   href="https://llvm.org/bugs/show_bug.cgi?id=25420">25420</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failed `!haveRefTypeParam || DV->getAs<Loc>()'
          </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 sa2.cc
class x0 {};
class x1 : x0 {};
template <typename> class x2;
template <typename x3> class x4 {
protected:
  static x3 *x5(int);
};
template <typename, typename> class x6;
template <typename x7, typename x3, typename... x8>
class x6<x7(x8...), x3> : x4<x3> {
public:
  static x7 x9() { (*x4<x3>::x5(0))(); }
};
template <typename x7, typename... x8> class x2<x7(x8...)> {
  template <typename, typename x10> using x11 = x10;

public:
  template <typename x3, typename = x11<x3, void>> x2(x3);
};
template <typename x7, typename... x8>
template <typename x3, typename>
x2<x7(x8...)>::x2(x3) {
  x6<x7(), x3>::x9;
}
template <typename x12> void x13(x12);
void x14(x1 &x15) {
  x2<void()>([x15] { x13(x15); });
}
$ clang-tidy -checks=-*,clang-analyzer*,-clang-analyzer-alpha* sa2.cc --
-std=c++11
clang-tidy:
llvm/tools/clang/lib/StaticAnalyzer/Checkers/NonNullParamChecker.cpp:102: void
(anonymous namespace)::NonNullParamChecker::checkPreCall(const
clang::ento::CallEvent &, clang::ento::CheckerContext &) const: Assertion
`!haveRefTypeParam || DV->getAs<Loc>()' failed.
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>