From: Paolo Carlini Date: Wed, 5 Aug 2015 10:07:57 +0000 (+0000) Subject: re PR c++/66595 ([C++14] ICE in partial specialization template variables) X-Git-Tag: basepoints/gcc-7~5238 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8282c8776d3727948daa41fa340f6b16d4f563d4;p=thirdparty%2Fgcc.git re PR c++/66595 ([C++14] ICE in partial specialization template variables) 2015-08-05 Paolo Carlini PR c++/66595 * g++.dg/cpp1y/var-templ35.C: New. From-SVN: r226617 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e7e74a36b252..aab1f851bb73 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-08-05 Paolo Carlini + + PR c++/66595 + * g++.dg/cpp1y/var-templ35.C: New. + 2015-08-05 Richard Biener PR tree-optimization/67055 diff --git a/gcc/testsuite/g++.dg/cpp1y/var-templ35.C b/gcc/testsuite/g++.dg/cpp1y/var-templ35.C new file mode 100644 index 000000000000..c2c58aca4aa7 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp1y/var-templ35.C @@ -0,0 +1,5 @@ +// PR c++/66595 +// { dg-do compile { target c++14 } } + +template int typeID{42}; +template double typeID{10.10}; // { dg-error "primary template|redeclaration" }