Home | History | Annotate | Download | only in temp.names
      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 {
      7   template <typename R, typename P> void h(R (*func)(P)) {}
      8   class C {
      9     template <typename T> static void g(T*) {};
     10    public:
     11     void f() { h(g<int>); }
     12   };
     13 }
     14