1 // PR c++/68936 2 3 class A {}; 4 5 struct predefined_macros { 6 struct B { 7 A (predefined_macros::*generator)(); 8 }; 9 }; 10 11 template <typename> class C { 12 void m_fn1(); 13 predefined_macros predef; 14 }; 15 16 predefined_macros::B m; 17 m_fn1()18template <typename ContextT> void C<ContextT>::m_fn1() { 19 (predef.*m.generator)(); 20 } 21