<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 - Alias template produces seemingly bogus "template template argument has different template parameters" error"
   href="https://bugs.llvm.org/show_bug.cgi?id=37157">37157</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Alias template produces seemingly bogus "template template argument has different template parameters" error
          </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>All
          </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++
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>arthur.j.odwyer@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I (and also GCC 7.0-and-later) claim that this program is legal C++.

    template<template<class> class X> struct A {};
    template<template<class...> class Y> using B = A<Y>;
    template<class> struct S;
    B<S> b;

Clang, on the other hand, bails out at line 2:

prog.cc:2:50: error: template template argument has different template
parameters than its corresponding template template parameter
template<template<class...> class Y> using B = A<Y>;
                                                 ^
prog.cc:2:19: note: template type parameter pack does not match template type
parameter in template argument
template<template<class...> class Y> using B = A<Y>;
                  ^
prog.cc:1:19: note: previous template type parameter declared here
template<template<class> class X> struct A {};
                  ^

Clang becomes happy if I change it from 'using B = A<Y>' to 'struct B {}', and
then sad again if I change it to 'struct B : A<Y> {}'.</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>