// { dg-do compile } // Origin: Wolfgang Bangerth // PR c++/9602: Inline friend/pure virtual tree data sharing in // class template. template struct X { void foo (X); friend void bar () {} }; template void X::foo (X x) {} template struct X;