From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21101 invoked by alias); 4 Nov 2002 22:46:16 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 21081 invoked by uid 61); 4 Nov 2002 22:46:16 -0000 Date: Mon, 04 Nov 2002 14:46:00 -0000 Message-ID: <20021104224616.21080.qmail@sources.redhat.com> To: chicares@mindspring.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, hou_zhenyu@hotmail.com, nobody@gcc.gnu.org From: bangerth@dealii.org Reply-To: bangerth@dealii.org, chicares@mindspring.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, hou_zhenyu@hotmail.com, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/8205: using declaration & mulitiple inheritance X-SW-Source: 2002-11/txt/msg00183.txt.bz2 List-Id: Old Synopsis: using declaration doesn't work while mulitiple inheritance was used. New Synopsis: using declaration & mulitiple inheritance State-Changed-From-To: open->analyzed State-Changed-By: bangerth State-Changed-When: Mon Nov 4 14:46:16 2002 State-Changed-Why: Right, this is a regression in 3.2, as it compiled cleanly in 2.95.I thus set the priority to "high" and let others decide what to do with it. However, it turns out that this is fixed on the mainline again (or the problem was never introduced there). For reference, I append the code in question below. Regards Wolfgang ------------------------- class A { public: int i; }; class B {}; class E : A, B { public: using A::i; }; int main() { E e; e.i; // "`A' is an inaccessible base of `E'" } ---------------------------------- tmp/g> /home/bangerth/bin/gcc-3.2.1-pre/bin/c++ -c x.cc x.cc: In function `int main()': x.cc:7: `A' is an inaccessible base of `E' tmp/g> /home/bangerth/bin/gcc-3.3x-pre/bin/c++ -c x.cc http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8205