<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 --- - Dependent template name not recognized as dependent"
href="https://llvm.org/bugs/show_bug.cgi?id=27746">27746</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Dependent template name not recognized as dependent
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.7
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</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>bekenn@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>Created <span class=""><a href="attachment.cgi?id=16370" name="attach_16370" title="Example illustrating the problem">attachment 16370</a> <a href="attachment.cgi?id=16370&action=edit" title="Example illustrating the problem">[details]</a></span>
Example illustrating the problem
The attached code produces an error: "use of undeclared identifier
'make_whatever_f'"
The code defines a class template is_whatever_adaptable<T> and a partial
specialization of that template when T has the form of a function type. The
templates define a trait with a value that evaluates to true when one of the
expressions make_whatever_s(decltype<T>()) (for the primary template) or
make_whatever_f<A>(decltype<T>()) (for the partial specialization) is
well-formed.
make_whatever_s and make_whatever_f are both dependent names, but the compiler
is rejecting make_whatever_f.
I believe the code to be well-formed; make_whatever_f is a dependent name, but
Clang is trying to bind to it prior to template instantiation.
I encountered this using Clang 3.7 packaged with Visual Studio 2015 Update 2;
later, I installed the Windows build of Clang from llvm.org and encountered the
same issue.</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>