<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 --- - Template template parameter in member initializer list is not recognized"
href="https://llvm.org/bugs/show_bug.cgi?id=26769">26769</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Template template parameter in member initializer list is not recognized
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.8
</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++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>nodakai@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>I tested this code with Clang++ 3.0, 3.8, G++ 4.4.7, 5.3.0, and ICC 13.0.1 (on
<a href="http://gcc.godbolt.org/">http://gcc.godbolt.org/</a>) and got errors only with clang++.
----------------------------------------
template <class>
struct Parent {
};
template <template <class> class Parent_>
struct Child : Parent_<int> {
};
struct GrandChild : Child<Parent> {
GrandChild() : Child<Parent>() { }
};
int main() {
}
----------------------------------------
tmpltmpl.cpp:10:24: error: template argument for template template parameter
must be a class template
GrandChild() : Child<Parent>() { }
^
tmpltmpl.cpp:10:18: error: expected class member or base class name
GrandChild() : Child<Parent>() { }
^
tmpltmpl.cpp:10:18: error: expected '{' or ','
3 errors generated.
----------------------------------------</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>