// PR c++/71075 template struct A {}; template void foo(A) {} int main() { foo(A()); // { dg-error "no matching" } // { dg-message "template argument .2. does not match .1." "" { target *-*-* } .-1 } }