testsuite: XFAIL gfortran.dg/initialization_25.f90 properly (again)
[official-gcc.git] / gcc / testsuite / g++.dg / template / crash11.C
blob229aec9ffe2ec6128cf22e97d260295d0fab2470
1 // { dg-do compile }
3 // Origin: kparz@iastate.edu
5 // PR c++/7939: ICE for invalid function parameter after template
6 // substitution.
8 template <class T, class U> void foo(T, U) {}
9 template <class T> void foo<T,void>(T, void) {} // { dg-error "40:invalid use of type .void." }
10 // { dg-error "25:non-class, non-variable partial specialization" "" { target c++14 } .-1 }
11 // { dg-error "25:non-type partial specialization" "" { target c++11_down } .-2 }