3 // Origin: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
5 // Perform access checking to parameter and return type of
6 // function template correctly when the template is friend.
8 template <class T> class O {
12 friend typename O<T_>::I f ();
16 typename O<T_>::I f () { return 1; }
19 void g() { f<int>(); }