From: Paolo Carlini Date: Thu, 25 May 2017 22:28:54 +0000 (+0000) Subject: re PR c++/71451 (ICE on invalid C++11 code on x86_64-linux-gnu: in dependent_type_p... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aee21066ffb4fd6e5f4edbbffa268200193ea33e;p=gcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f9b56296468..2afca6a2c02 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 00000000000..98d29ece51b --- /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; +}