From 8282c8776d3727948daa41fa340f6b16d4f563d4 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Wed, 5 Aug 2015 10:07:57 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp1y/var-templ35.C | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp1y/var-templ35.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e7e74a36b25..aab1f851bb7 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 00000000000..c2c58aca4aa --- /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" } -- 2.30.2