// { dg-do compile }// Perform access checking to parameter and return type of // function template correctly when only specialization is friend.template<classT>typenameT::Innerfoo(){returntypenameT::Inner();}classOuter{private:structInner{};friendOuter::Innerfoo<Outer>();};voidf(){foo<Outer>();}