<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 --- - Alias template is incorrectly treated as a different template when used with as a template template parameter"
href="http://llvm.org/bugs/show_bug.cgi?id=18411">18411</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Alias template is incorrectly treated as a different template when used with as a template template parameter
</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>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>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ken@fsfoundry.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>As I was explaining <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - clang-3.5 emits function definition with internal linkage incorrectly"
href="show_bug.cgi?id=18408">bug #18408</a> to my colleague, I realized there was another
bug.
template <template <typename> class A>
struct TemplateTakingTemplateTemplateParameter {};
template <typename B>
class GlobalTemplate {};
template <typename B>
using AliasToGlobalTemplate = GlobalTemplate<B>;
void foo(GlobalTemplate) {}
/*
void foo(AliasToGlobalTemplate) {} // Error: Redefine!
*/
void foo(TemplateTakingTemplateTemplateParameter<GlobalTemplate>) {}
void foo(TemplateTakingTemplateTemplateParameter<AliasToGlobalTemplate>) {} //
Compiles, but it shouldn't</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>