// PR c++/69098 // { dg-do compile { target c++14 } } template struct SpecPerType; class Specializer { public: template void MbrFnTempl() //Must be a template { } template struct InnerClassTempl { //Had to be a template whenever I tested for it static void InnerMemberFn(); }; void Trigger() { InnerClassTempl<0u>::InnerMemberFn(); } }; template<> struct SpecPerType { using FnType = void (Specializer::*)(); template static constexpr FnType SpecMbrFnPtr = &Specializer::template MbrFnTempl

; }; template constexpr SpecPerType::FnType SpecPerType::SpecMbrFnPtr; //Just a formalism template void Specializer::InnerClassTempl::InnerMemberFn() { using Spec = SpecPerType; typename Spec::FnType ErrorSite = Spec::template SpecMbrFnPtr; //ErrorSite would get called next in the original code //(this should result in a call to MbrFnTempl) } int main() { }