struct CPU { typedef int (*pfun)(); template static int dispatch(); }; template static int foo(); template int CPU::dispatch<&template foo<2> > (); // { dg-error "" }