// PR c++/48261 typedef double (*gaddType)(double,double); struct Foo2 { static gaddType add; }; template struct Something { void work() { double x=T::template add(5.0,6.0); // { dg-error "add" } } }; int main() { Something s2; s2.work(); }