re PR c++/71451 (ICE on invalid C++11 code on x86_64-linux-gnu: in dependent_type_p...
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 25 May 2017 22:28:54 +0000 (22:28 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 25 May 2017 22:28:54 +0000 (22:28 +0000)
2017-05-25  Paolo Carlini  <paolo.carlini@oracle.com>

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

From-SVN: r248473

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/variadic170.C [new file with mode: 0644]

index f9b56296468af314a4385d6d133609a14598559c..2afca6a2c02a4a19d21cb95aa771334816773322 100644 (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.
diff --git a/gcc/testsuite/g++.dg/cpp0x/variadic170.C b/gcc/testsuite/g++.dg/cpp0x/variadic170.C
new file mode 100644 (file)
index 0000000..98d29ec
--- /dev/null
@@ -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;
+}