<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    ActOnVariableDeclarator() sometimes calls
    setTemplateParameterListsInfo() with an empty template parameter
    list during error recovery.<br>
    <br>
    Currently asserts on invalid with cases like these:<br>
    <br>
    <meta charset="utf-8">
    <code>template <class _Tp></code><code><br>
    </code><code>typename remove_reference {}</code><code><br>
    </code><code>remove_reference<int> type;</code><br>
    <br>
    <code>template <class = void></code><code><br>
    </code><code>remove_reference;</code><code><br>
    </code><code>remove_reference<>;</code><br>
    <br>
    The attached patch simply removes the assertion assert(NumTPLists
    > 0).<br>
    <br>
    As far as I can tell the code path is equipped to deal with
    NumTPLists == 0 so this shouldn't cause a problem, but would
    appreciate review from someone familiar with the template code.<br>
    <br>
    Related to PR17191.<br>
    <br>
    Alp.<br>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.nuanti.com">http://www.nuanti.com</a>
the browser experts
</pre>
  </body>
</html>