From 08f0a7396e63ab3d018bacac1a098e6de1e70308 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Wed, 11 Oct 2017 10:01:23 +0000 Subject: [PATCH] re PR c++/80412 ([c++17] crash with class template deduction guide and inheritance) 2017-10-11 Paolo Carlini PR c++/80412 * g++.dg/cpp1z/class-deduction44.C: New. From-SVN: r253632 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp1z/class-deduction44.C | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp1z/class-deduction44.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ce4019198fb..60cdae80f8e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-10-11 Paolo Carlini + + PR c++/80412 + * g++.dg/cpp1z/class-deduction44.C: New. + 2017-10-11 Paolo Carlini 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 index 00000000000..15711971f51 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp1z/class-deduction44.C @@ -0,0 +1,5 @@ +// PR c++/80412 +// { dg-options -std=c++17 } + +template struct A; +template struct B : A < B { , // { dg-error "" } -- 2.30.2