From 4d5bb56b1d3e6873a7d08dc8f5f4a4997e51bfde Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Sat, 15 Feb 2020 14:48:08 +0100 Subject: [PATCH] c++: Add testcase for PR 90764. PR c++/90764 * g++.dg/cpp1z/class-deduction69.C: New. --- gcc/testsuite/g++.dg/cpp1z/class-deduction69.C | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp1z/class-deduction69.C diff --git a/gcc/testsuite/g++.dg/cpp1z/class-deduction69.C b/gcc/testsuite/g++.dg/cpp1z/class-deduction69.C new file mode 100644 index 00000000000..8291f4a649f --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp1z/class-deduction69.C @@ -0,0 +1,12 @@ +// PR c++/90764 +// { dg-do compile { target c++17 } } + +namespace a { + struct b; + template using c = b; +} +template struct e : a::c { // { dg-error "incomplete" } + using a::c<>::c; // { dg-prune-output "not a base" } +}; +template