re PR c++/68578 (ICE on invalid template declaration and instantiation)
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 25 May 2017 09:32:06 +0000 (09:32 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 25 May 2017 09:32:06 +0000 (09:32 +0000)
2017-05-25  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/68578
* g++.dg/cpp1y/pr68578.C: New.

From-SVN: r248450

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

index bb658182cfa2f23cb736d52835d3024e9d3428b9..ae561d148d2b1aaa74d1b9ef7ce903be10f19e45 100644 (file)
@@ -1,3 +1,8 @@
+2017-05-25  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/68578
+       * g++.dg/cpp1y/pr68578.C: New.
+
 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
 
        * gcc.dg/tree-ssa/vce-1.c: New file.
diff --git a/gcc/testsuite/g++.dg/cpp1y/pr68578.C b/gcc/testsuite/g++.dg/cpp1y/pr68578.C
new file mode 100644 (file)
index 0000000..3fe0723
--- /dev/null
@@ -0,0 +1,3 @@
+// { dg-do compile { target c++14 } }
+
+template <typename> struct bar foo; template <> struct foo<>:  // { dg-error "class template|expected" }