[LLVMbugs] [Bug 22953] New: template functions calling functions on template classes can't find the referenced cursor

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Mar 18 22:20:41 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=22953

            Bug ID: 22953
           Summary: template functions calling functions on template
                    classes can't find the referenced cursor
           Product: clang
           Version: 3.5
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: libclang
          Assignee: unassignedclangbugs at nondot.org
          Reporter: agbakken at gmail.com
                CC: klimek at google.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 14077
  --> https://llvm.org/bugs/attachment.cgi?id=14077&action=edit
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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150319/c257ccc4/attachment.html>


More information about the llvm-bugs mailing list