<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 - template template parameters not matched correctly when they contain non-type template parameters"
href="https://bugs.llvm.org/show_bug.cgi?id=32185">32185</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>template template parameters not matched correctly when they contain non-type template parameters
</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>eniebler@boost.org
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>template <template <typename T, T u> class U> struct bar_ {
typedef char type;
};
template <template <typename T, T u> class U> struct bar {
typedef typename bar_<U>::type type;
};
Gives:
test.cpp:5:25: error: template template argument has different template
parameters than its corresponding template template parameter
typedef typename bar_<U>::type type;
^
test.cpp:4:35: note: template non-type parameter has a different type 'T' in
template argument
template <template <typename T, T u> class U> struct bar {
^
test.cpp:1:35: note: previous non-type template parameter with type 'T' is here
template <template <typename T, T u> class U> struct bar_ {
^
test.cpp:5:29: error: expected a qualified name after 'typename'
typedef typename bar_<U>::type type;
^
test.cpp:5:33: error: expected ';' at end of declaration list
typedef typename bar_<U>::type type;
^
;
3 errors generated.
Taewook Oh tracked this down to <a href="https://reviews.llvm.org/rL291512">https://reviews.llvm.org/rL291512</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>