1 // PR c++/59115 2 foo(T,U)3 template<typename T, float, int, typename U> void foo(T, U) {} // { dg-error "valid type" } 4 bar()5 void bar() 6 { 7 foo(0, 0); // { dg-error "matching" } 8 } 9