3 // Origin: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
6 // Access checking when template friend is defined in class.
8 template <typename> class X {
13 friend typename X<R>::Inner * foo () { return 0; }
15 template class X<void>;
18 void bar () { foo<void> (); }