// { dg-do compile } // Origin: kparz@iastate.edu // PR c++/7939: ICE for invalid function parameter after template // substitution. template void foo(T, U) {} template void foo(T, void) {} // { dg-error "40:invalid use of type .void." } // { dg-error "25:non-class, non-variable partial specialization" "" { target c++14 } .-1 } // { dg-error "25:non-type partial specialization" "" { target c++11_down } .-2 }