Debian Codegraph @

gcc/testsuite/g++.dg/template/friend25.C

raw
1 // { dg-do compile }
2
3 // Origin: Jiangbin Zhao <[email protected]>
4
5 // PR c++/12369: ICE for specialization of member function template
6 // as friend in ordinary class.
7
8 struct A {
9 template<class T> T* make() { return new T(); }
10 };
11
12 struct B {
13 friend B* A::make< B >(); // (1)
14 };