summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/template-id-4.C
blob: 26f4809bc96c8948fc74990ad1e672268c141be8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// PR c++/48157

struct AType
{
  template<class AA>
  void SomeFuncTemplate()
  { }
};

template < class T >
struct TTest2
{
  template<T> struct helper;

  template<class U>
  static void check(helper<&U::template SomeFuncTemplate<int> > *);
};

int main()
{
  TTest2< void (AType::*)() >::check<AType>(0);
}