// { dg-do compile }// Origin: Wolfgang Bangerth <bangerth@ticam.utexas.edu>// PR c++/9453// Access checking when template friend is defined in class.template<typename>classX{private:structInner;template<typenameR>friendtypenameX<R>::Inner*foo(){return0;}};templateclassX<void>;structU{voidbar(){foo<void>();}};