From: Jason Merrill Date: Sat, 15 Feb 2020 13:48:08 +0000 (+0100) Subject: c++: Add testcase for PR 90764. X-Git-Tag: basepoints/gcc-11~1431 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d5bb56b1d3e6873a7d08dc8f5f4a4997e51bfde;p=thirdparty%2Fgcc.git c++: Add testcase for PR 90764. PR c++/90764 * g++.dg/cpp1z/class-deduction69.C: New. --- 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 000000000000..8291f4a649fa --- /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