summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/friend37.C
blob: 7c868290660dccc1a27acc0538efb9f6a1a8c836 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/22147

template<typename> struct A;

template<typename T> void foo(A<T>* p) { *p; }

template<typename> struct A
{
  friend void foo<class X>(A<X>*);
};

void bar()
{
  foo<int>(0);
}