Commit 8797dd71 by Marek Polacek Committed by Marek Polacek

re PR c++/71548 (Invalid declaration involving template template param causes crash)

	PR c++/71548
	* g++.dg/cpp0x/variadic177.C: New test.

From-SVN: r272438
parent 987a3082
2019-06-18 Marek Polacek <polacek@redhat.com>
PR c++/71548
* g++.dg/cpp0x/variadic177.C: New test.
2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
* gcc.target/aarch64/sve/struct_vect_18.c: Allow branches to
......
// 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" }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment