// { dg-do compile { target c++1y } } template auto f(T) { return 42; } template auto g(T) { return 0.0; } int main() { int (*p)(int) = &f; // OK p = &g; // { dg-error "no match" } }