// PR c++/82331 // { dg-do compile { target c++17 } } template class X; template class X { public: static R call (A... args) { return (*F)(args...); } }; int func (int a, int b) { return a + b; } int test () { return X<&func>::call(1, 2); }