blob: 32f109e8af9fcdf0ef92e27bca0ab8b7a075bb4e [file] [log] [blame]
// PR c++/82331
// { dg-do compile { target c++17 } }
template <auto>
class X;
template <typename R, typename... A, R (*F) (A...)>
class X<F> {
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); }