blob: 818b6f5da67e7a47aa80e78125b63891b65bed22 [file] [log] [blame]
// { dg-do compile { target c++1y } }
template <class T>
auto f(T) { return 42; }
template <class T>
auto g(T) { return 0.0; }
int main()
{
int (*p)(int) = &f; // OK
p = &g; // { dg-error "no match" }
}