aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>2015-06-19 14:15:17 -0400
committerJason Merrill <jason@gcc.gnu.org>2015-06-19 14:15:17 -0400
commit2e562987080cf23cb6b9c147cd4a975faac6e2ea (patch)
tree2081c6e649676f87a9a509ee2d5781f3326e3ab3
parent490948ca36a1b9dc407930eba0e6dd52c83dac4d (diff)
downloadgcc-2e562987080cf23cb6b9c147cd4a975faac6e2ea.zip
gcc-2e562987080cf23cb6b9c147cd4a975faac6e2ea.tar.gz
gcc-2e562987080cf23cb6b9c147cd4a975faac6e2ea.tar.bz2
re PR c++/66061 (Internal Compiler Error when specializing a variable template when the specialization is variadic)
PR c++/66061 * g++.dg/cpp1y/var-templ31.C: New. From-SVN: r224675
-rw-r--r--gcc/testsuite/g++.dg/cpp1y/var-templ31.C8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp1y/var-templ31.C b/gcc/testsuite/g++.dg/cpp1y/var-templ31.C
new file mode 100644
index 0000000..e2bc59b
--- /dev/null
+++ b/gcc/testsuite/g++.dg/cpp1y/var-templ31.C
@@ -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;