<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 --- - template functions calling functions on template classes can't find the referenced cursor"
   href="https://llvm.org/bugs/show_bug.cgi?id=22953">22953</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>template functions calling functions on template classes can't find the referenced cursor
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.5
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </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>libclang
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>agbakken@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>klimek@google.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=14077" name="attach_14077" title="simple source file that shows the problem.">attachment 14077</a> <a href="attachment.cgi?id=14077&action=edit" title="simple source file that shows the problem.">[details]</a></span>
simple source file that shows the problem.

If you have a template function that invokes a function on a template class
clang_getCursorReferenced returns a null cursor.

To reproduce:

echo "[{\"directory\":\"$PWD\",\"command\":\"/usr/bin/clang++ -o $PWD/main.o
$PWD/main.cpp\",\"file\":\"$PWD/main.cpp\"}]" > compile_commands.json
clang-check -ast-dump main.cpp

Notice how the CallExpr on line:20:5 doesn't refer to anything.</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>