1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
4 // Ensure that when enforcing access control an unqualified template name with
5 // explicit template arguments, we don't lose the context of the name lookup
6 // because of the required early lookup to determine if it names a template.
8 template <typename R
, typename P
> void h(R (*func
)(P
)) {}
10 template <typename T
> static void g(T
*) {};
12 void f() { h(g
<int>); }