c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / variadic177.C
blob96736a0ac0abd834ed435c6d10f0228b87cd80a6
1 // PR c++/71548
2 // { dg-do compile { target c++11 } }
4 template<typename> class fl {};
5 template<typename = void, template<class...> class = fl>
6 struct S {};
7 template<typename... T>
8 void f(S<T...> ) {}
9 void lol() {
10     S<> s;
11     f(s); // { dg-error "no matching function for call to" }