OSDN Git Service

PR c++/54858
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / friend21.C
1 // { dg-do compile }
2
3 // Origin: ajl13@bellatlantic.net
4
5 // PR c++/5421: ICE for specialization of member function template
6 // as friend.
7
8 struct B {
9   template <class T> void b();
10 };
11
12 template <class T> class A {
13   friend void B::b<T>();
14 };
15
16 static A<int> a;