Commit aee21066 by Paolo Carlini Committed by Paolo Carlini

re PR c++/71451 (ICE on invalid C++11 code on x86_64-linux-gnu: in…

re PR c++/71451 (ICE on invalid C++11 code on x86_64-linux-gnu: in dependent_type_p, at cp/pt.c:22599)

2017-05-25  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/71451
	* g++.dg/cpp0x/variadic170.C: New.

From-SVN: r248473
parent 1d5cf7fc
2017-05-25 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/71451
* g++.dg/cpp0x/variadic170.C: New.
2017-05-25 Volker Reichelt <v.reichelt@netcologne.de> 2017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
* g++.dg/warn/Wcatch-value-1.C: New test. * g++.dg/warn/Wcatch-value-1.C: New test.
......
// PR c++/71451
// { dg-do compile { target c++11 } }
template < int > struct A;
template < typename ... T >
struct B
{
template < typename A < T::value >::type > void foo (); // { dg-error "parameter packs" }
};
int main ()
{
B < int > t;
t.foo ();
return 0;
}
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