From 2673d1925b3702b754d86631746bcca376be75f0 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Thu, 25 May 2017 09:32:06 +0000 Subject: [PATCH] re PR c++/68578 (ICE on invalid template declaration and instantiation) 2017-05-25 Paolo Carlini PR c++/68578 * g++.dg/cpp1y/pr68578.C: New. From-SVN: r248450 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp1y/pr68578.C | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp1y/pr68578.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index bb658182cfa..ae561d148d2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-05-25 Paolo Carlini + + PR c++/68578 + * g++.dg/cpp1y/pr68578.C: New. + 2017-05-25 Marc Glisse * 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 index 00000000000..3fe07230117 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp1y/pr68578.C @@ -0,0 +1,3 @@ +// { dg-do compile { target c++14 } } + +template struct bar foo; template <> struct foo<>: // { dg-error "class template|expected" } -- 2.30.2