re PR c++/80412 ([c++17] crash with class template deduction guide and inheritance)
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 11 Oct 2017 10:01:23 +0000 (10:01 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 11 Oct 2017 10:01:23 +0000 (10:01 +0000)
2017-10-11  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/80412
* g++.dg/cpp1z/class-deduction44.C: New.

From-SVN: r253632

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

index ce4019198fbaae358247f145f39b8cc53c8baab6..60cdae80f8e8e5408365f81e40600d9d31900bd0 100644 (file)
@@ -1,3 +1,8 @@
+2017-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/80412
+       * g++.dg/cpp1z/class-deduction44.C: New.
+
 2017-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
 
        PR c++/82230
diff --git a/gcc/testsuite/g++.dg/cpp1z/class-deduction44.C b/gcc/testsuite/g++.dg/cpp1z/class-deduction44.C
new file mode 100644 (file)
index 0000000..1571197
--- /dev/null
@@ -0,0 +1,5 @@
+// PR c++/80412
+// { dg-options -std=c++17 }
+
+template <typename> struct A;
+template <typename> struct B : A < B { ,  // { dg-error "" }