re PR c++/66595 ([C++14] ICE in partial specialization template variables)
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 5 Aug 2015 10:07:57 +0000 (10:07 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 5 Aug 2015 10:07:57 +0000 (10:07 +0000)
2015-08-05  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/66595
* g++.dg/cpp1y/var-templ35.C: New.

From-SVN: r226617

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

index e7e74a36b2526b5b2ab28e07dedbadae987b8b7c..aab1f851bb730a66afa12ceceac14721a5f5db0e 100644 (file)
@@ -1,3 +1,8 @@
+2015-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/66595
+       * g++.dg/cpp1y/var-templ35.C: New.
+
 2015-08-05  Richard Biener  <rguenther@suse.de>
 
        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 (file)
index 0000000..c2c58ac
--- /dev/null
@@ -0,0 +1,5 @@
+// PR c++/66595
+// { dg-do compile { target c++14 } }
+
+template<typename T> int typeID{42};
+template<typename T> double typeID<double>{10.10}; // { dg-error "primary template|redeclaration" }