<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 --- - Explicit template arguments of overload name ignored by ADL" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23714&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=ggSvbEKYeuQLsE2aFE3BvscUrTubYMsNgD5RoXDCr1I&s=vmbP3oLqmQLonhdXkrnf4539tsafi0_PzoHU-RfYdmA&e=">23714</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Explicit template arguments of overload name ignored by ADL
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.6
          </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++11
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>david_work@me.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>The last sentence of [basic.lookup.argdep] ยง3.4.2/2 is unimplemented.

"Additionally, if the aforementioned set of overloaded functions is named with
a template-id, its associated classes and namespaces also include those of its
type template-arguments and its template template-arguments."

This was added to the IS in C++11, but it's probably applicable to C++98 too.
Clang implements a similar, non-template case added by C++03 in C++98 mode
(since C++98 and C++03 modes are the same thing).


namespace hide {
    struct s {};

    template< typename >
    void f() {}

    void call( void (*fn) () ) {
        fn();
    }
}

int main() {
    call( hide::f< hide::s > );
}</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>