<html>
    <head>
      <base href="http://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 --- - clang erroneously enforcing alias template parameter kind"
   href="http://llvm.org/bugs/show_bug.cgi?id=19373">19373</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang erroneously enforcing alias template parameter kind
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </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>eric@boostpro.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Gcc 4.8.2 accepts the following code. I think it's legal, but I'm far from
certain.

///////////////////////////////////////
template<typename T, typename...Us>
using X = T;

template<template<typename...> class T>
struct S
{
    template<typename...Us>
    using X = T<Us...>;
};

int main()
{
    S<X>::X<int, char *> i = 0;
}
///////////////////////////////////////

Result:

test.cpp:8:17: error: pack expansion used as argument for non-pack parameter of
alias template
    using X = T<Us...>;
                ^~~~~
test.cpp:13:5: note: in instantiation of template class 'S<X>' requested here
    S<X>::X<int, char *> i = 0;
    ^
test.cpp:1:19: note: template parameter is declared here
template<typename T, typename...Us>
                  ^</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>