// PR c++/65195 // { dg-do compile { target c++14 } } template T constant {}; template struct foo { int operator()() const { return 3; } }; template auto& f = constant>; int main() { // fine auto& ref = f; ref(); // error: f cannot be used as a function f(); }