re PR c++/81016 (ICE: segfault with template struct specialisation)
authorPaolo Carlini <paolo.carlini@oracle.com>
Sat, 14 Oct 2017 20:06:08 +0000 (20:06 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 14 Oct 2017 20:06:08 +0000 (20:06 +0000)
2017-10-14  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/81016
* g++.dg/cpp1z/pr81016.C: New.

From-SVN: r253762

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

index 609269a074121de41ce0dbbd5a63f1a9f4b754e2..80dede23db7b2bc6e9fd6ffcbafb7b4a8bdcfe63 100644 (file)
@@ -1,3 +1,8 @@
+2017-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/81016
+       * g++.dg/cpp1z/pr81016.C: New.
+
 2017-10-14  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/62263
diff --git a/gcc/testsuite/g++.dg/cpp1z/pr81016.C b/gcc/testsuite/g++.dg/cpp1z/pr81016.C
new file mode 100644 (file)
index 0000000..4826fbf
--- /dev/null
@@ -0,0 +1,4 @@
+// { dg-options "-std=c++17" }
+
+template <typename a, a> struct b;
+template <typename c> struct b<bool, c::d>; // { dg-error "template parameter" }