// PR c++/59115 template void foo(T, U) {} // { dg-error "valid type" } void bar() { foo(0, 0); // { dg-error "matching" } }