<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - Local declared template class name as template template parameter in using"
   href="https://bugs.llvm.org/show_bug.cgi?id=33685">33685</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Local declared template class name as template template parameter in using
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>4.0
          </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>C++11
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>david@davidscorner.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>template<template <class> class>
struct TTClass {};

template <typename>
struct Foo {
    using T = TTClass<Foo>;
};

int main(int argc, char *argv[]) {}

-----------------------------------

template_name_injection2.cpp:8:23: error: template argument for template
template parameter must be a class template or type alias template
    using T = TTClass<Foo>;

-----------------------------------

clang version 4.0.1 (tags/RELEASE_401/final)
Target: x86_64-unknown-linux-gnu

-----------------------------------

Foo should resolve to a template template parameter corresponding to C++ std
14.6.1. Adding the complete namespace works as a fix (using T =
TTClass<::Foo>;)</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>