From aee21066ffb4fd6e5f4edbbffa268200193ea33e Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Thu, 25 May 2017 22:28:54 +0000 Subject: [PATCH] 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 PR c++/71451 * g++.dg/cpp0x/variadic170.C: New. From-SVN: r248473 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/variadic170.C | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/variadic170.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f9b5629..2afca6a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-05-25 Paolo Carlini + + PR c++/71451 + * g++.dg/cpp0x/variadic170.C: New. + 2017-05-25 Volker Reichelt * g++.dg/warn/Wcatch-value-1.C: New test. diff --git a/gcc/testsuite/g++.dg/cpp0x/variadic170.C b/gcc/testsuite/g++.dg/cpp0x/variadic170.C new file mode 100644 index 0000000..98d29ec --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/variadic170.C @@ -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; +} -- 2.7.4