From 4d2b0866d760f822c137b69f14d1c51fc760ce53 Mon Sep 17 00:00:00 2001 From: Patrick Palka Date: Wed, 17 Jun 2020 09:09:53 -0400 Subject: [PATCH] Fix use of inaccessible member in pr85503.C [PR95716] The recent PR41437 fix exposed a latent use of an inaccessible member in the below testcase. gcc/testsuite/ChangeLog: PR testsuite/95716 * g++.dg/ext/pr85503.C: Give ai::cv public access. --- gcc/testsuite/g++.dg/ext/pr85503.C | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/g++.dg/ext/pr85503.C b/gcc/testsuite/g++.dg/ext/pr85503.C index 7e17943e353..832952a8774 100644 --- a/gcc/testsuite/g++.dg/ext/pr85503.C +++ b/gcc/testsuite/g++.dg/ext/pr85503.C @@ -138,6 +138,7 @@ struct ad< ai< cr, ag, ah, cu, ct, cw > > { }; template < typename, int ag, int ah, int, int, int > class ai : public af< ai< double, ag, ah > > { +public: typedef ai cv; }; template < typename bk, typename ce, typename cf > -- 2.30.2