<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 --- - "The backtrack pos points inside the annotated tokens!" assert hit for wrong syntax"
   href="https://llvm.org/bugs/show_bug.cgi?id=28913">28913</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>"The backtrack pos points inside the annotated tokens!" assert hit for wrong syntax
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </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>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>shahar@ceemple.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, yaron.keren@gmail.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=16918" name="attach_16918" title="Test code">attachment 16918</a> <a href="attachment.cgi?id=16918&action=edit" title="Test code">[details]</a></span>
Test code

Clang trunk version, built in release with asserts enabled, hits the following
assert:

clang-4.0: ../tools/clang/lib/Lex/PPCaching.cpp:109: void
clang::Preprocessor::AnnotatePreviousCachedTokens(const clang::Token &):
Assertion `(BacktrackPositions.empty() || BacktrackPositions.back() < i) &&
"The backtrack pos points inside the annotated tokens!"' failed.

When compiling the following syntactically wrong code:

  class A {}; 
  template < int > class B : A
    B < >  

Note that syntax errors are emitted properly prior to crashing.</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>