<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 --- - Friend Template With Default Arguments In Namespace"
href="http://llvm.org/bugs/show_bug.cgi?id=18038">18038</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Friend Template With Default Arguments In Namespace
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</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>holt.bg@gmail.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>Created <span class=""><a href="attachment.cgi?id=11595" name="attach_11595" title="Does not compile (compilation error is in a comment in the source). Difference from `works.cpp` is that class and function are in a namespace.">attachment 11595</a> <a href="attachment.cgi?id=11595&action=edit" title="Does not compile (compilation error is in a comment in the source). Difference from `works.cpp` is that class and function are in a namespace.">[details]</a></span>
Does not compile (compilation error is in a comment in the source). Difference
from `works.cpp` is that class and function are in a namespace.
Clang fails to find the default template argument, but only if it's in a
namespace. This seems like a weird corner case that may have been missed in
tests but has come up for me. GCC is able to compile it.
I have attached two nearly identical versions. One (works.cpp), does *not* have
anything in a namespace. The other (broken.cpp) has all of them in a single
namespace (N).</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>