diff options
author | Jason Merrill <jason@gcc.gnu.org> | 2015-06-19 14:15:17 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2015-06-19 14:15:17 -0400 |
commit | 2e562987080cf23cb6b9c147cd4a975faac6e2ea (patch) | |
tree | 2081c6e649676f87a9a509ee2d5781f3326e3ab3 | |
parent | 490948ca36a1b9dc407930eba0e6dd52c83dac4d (diff) | |
download | gcc-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.C | 8 |
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; |