Invalid, but we used to crash here, so let's make sure the ICE doesn't creep back in.
Tested on x86_64-linux, applying to trunk. 2019-06-18 Marek Polacek <pola...@redhat.com> PR c++/71548 * g++.dg/cpp0x/variadic177.C: New test. diff --git gcc/testsuite/g++.dg/cpp0x/variadic177.C gcc/testsuite/g++.dg/cpp0x/variadic177.C new file mode 100644 index 00000000000..96736a0ac0a --- /dev/null +++ gcc/testsuite/g++.dg/cpp0x/variadic177.C @@ -0,0 +1,12 @@ +// PR c++/71548 +// { dg-do compile { target c++11 } } + +template<typename> class fl {}; +template<typename = void, template<class...> class = fl> +struct S {}; +template<typename... T> +void f(S<T...> ) {} +void lol() { + S<> s; + f(s); // { dg-error "no matching function for call to" } +}