// PR c++/63378 // { dg-do compile { target c++11 } } template struct B { }; template struct A { private: template static B g(); public: template auto f() -> decltype(g()); }; template<> template<> auto A::f() -> B;