re PR c++/66061 (Internal Compiler Error when specializing a variable template when...
authorJason Merrill <jason@gcc.gnu.org>
Fri, 19 Jun 2015 18:15:17 +0000 (14:15 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 19 Jun 2015 18:15:17 +0000 (14:15 -0400)
PR c++/66061
* g++.dg/cpp1y/var-templ31.C: New.

From-SVN: r224675

gcc/testsuite/g++.dg/cpp1y/var-templ31.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/cpp1y/var-templ31.C b/gcc/testsuite/g++.dg/cpp1y/var-templ31.C
new file mode 100644 (file)
index 0000000..e2bc59b
--- /dev/null
@@ -0,0 +1,8 @@
+// PR c++/66061
+// { dg-do compile { target c++14 } }
+
+template<int...>
+int x = 1;
+
+template<int n, int... m>
+int x<n, m...> = 1;