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
This commit is contained in:
Paolo Carlini 2017-05-25 22:28:54 +00:00 committed by Paolo Carlini
parent 1d5cf7fcf2
commit aee21066ff
2 changed files with 22 additions and 0 deletions

View file

@ -1,3 +1,8 @@
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>
* g++.dg/warn/Wcatch-value-1.C: New test.

View file

@ -0,0 +1,17 @@
// 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;
}