1 2 3 4 5 6 7 8 9 10 11
struct CPU { typedef int (*pfun)(); template <pfun step1> static int dispatch(); }; template<int> static int foo(); template int CPU::dispatch<&template foo<2> > (); // { dg-error "" }