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