[llvm-bugs] [Bug 30847] New: No completions for template class member within template class (T forwarded)

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Oct 31 07:51:51 PDT 2016


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

            Bug ID: 30847
           Summary: No completions for template class member within
                    template class (T forwarded)
           Product: clang
           Version: 3.9
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: libclang
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nikolai.kosjar at qt.io
                CC: klimek at google.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

$ cat -n /tmp/foo.cpp
     1  template<class T>
     2  struct Temp1 { T var; };
     3
     4  template <class T>
     5  struct Temp2
     6  {
     7      void func()
     8      {
     9          Temp1<T> t1;
    10          t1. // Complete here
    11      }
    12  };

$ /usr/local/bin/clang-3.9 -cc1 -code-completion-at /tmp/foo.cpp:10:12
/tmp/foo.cpp
<nothing>

Observations:
 1. In line 9, if "T" is changed to "int" there are some results.
 2. If "t1" is declared as member, same issue occurs.

Origin: https://bugreports.qt.io/browse/QTCREATORBUG-17187

Might be related to https://llvm.org/bugs/show_bug.cgi?id=17614

-- 
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/20161031/bdab3163/attachment-0001.html>


More information about the llvm-bugs mailing list