<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 --- - No completions for template class member within template class (T forwarded)"
   href="https://llvm.org/bugs/show_bug.cgi?id=30847">30847</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>No completions for template class member within template class (T forwarded)
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.9
          </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>libclang
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>nikolai.kosjar@qt.io
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>klimek@google.com, llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$ 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: <a href="https://bugreports.qt.io/browse/QTCREATORBUG-17187">https://bugreports.qt.io/browse/QTCREATORBUG-17187</a>

Might be related to <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Code completion of members of a dependent base class doesn't work"
   href="show_bug.cgi?id=17614">https://llvm.org/bugs/show_bug.cgi?id=17614</a></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>