• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 
3 // Ensure that when enforcing access control an unqualified template name with
4 // explicit template arguments, we don't lose the context of the name lookup
5 // because of the required early lookup to determine if it names a template.
6 namespace PR7163 {
h(R (* func)(P))7   template <typename R, typename P> void h(R (*func)(P)) {}
8   class C {
g(T *)9     template <typename T> static void g(T*) {};
10    public:
f()11     void f() { h(g<int>); }
12   };
13 }
14