From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23637 invoked by alias); 9 Jun 2002 06:36:02 -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 23611 invoked by uid 71); 9 Jun 2002 06:36:01 -0000 Resent-Date: 9 Jun 2002 06:36:01 -0000 Resent-Message-ID: <20020609063601.23610.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, peter.klotz@aon.at Received:(qmail 23585 invoked by uid 61); 9 Jun 2002 06:35:49 -0000 Message-Id:<20020609063549.23584.qmail@sources.redhat.com> Date: Sat, 08 Jun 2002 23:36:00 -0000 From: peter.klotz@aon.at Reply-To: peter.klotz@aon.at To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/6974: g++ 3.1 accesses private typedef of base class X-SW-Source: 2002-06/txt/msg00193.txt.bz2 List-Id: >Number: 6974 >Category: c++ >Synopsis: g++ 3.1 accesses private typedef of base class >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: accepts-illegal >Submitter-Id: net >Arrival-Date: Sat Jun 08 23:36:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: peter.klotz@aon.at >Release: unknown-1.0 >Organization: >Environment: Red Hat Linux 7.3 with gcc 3.1-1 packages from Red Hat >Description: The compiler processes the attached code without error although the typedef in class Base is private and therefore inaccessible from class Derived. The code should not compile. >How-To-Repeat: g++ -W -Wall private_typdef.cpp -o private_typedef >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="private_typedef.cpp" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="private_typedef.cpp" I2luY2x1ZGUgPGxpc3Q+CiNpbmNsdWRlIDxzdHJpbmc+Cgp0ZW1wbGF0ZTx0eXBlbmFtZSBUPgpj bGFzcyBCYXNlCnsKcHJpdmF0ZToKICAgIHR5cGVkZWYgVCBUVDsKfTsKCnRlbXBsYXRlPHR5cGVu YW1lIFQ+CmNsYXNzIERlcml2ZWQgOiBwdWJsaWMgQmFzZTxUPgp7CnByb3RlY3RlZDoKICAgIHR5 cGVkZWYgdHlwZW5hbWUgQmFzZTxUPjo6VFQgVFQ7IC8vIHR5cGVkZWYgVFQgaW4gY2xhc3MgQmFz ZSBpcyBwcml2YXRlIQpwdWJsaWM6CiAgICB2b2lkIGYoKQogICAgewogICAgICAgIHN0ZDo6bGlz dDxUVD4gbDsKICAgIH0KfTsKCmludCBtYWluKHZvaWQpCnsKICAgIERlcml2ZWQ8c3RkOjpzdHJp bmc+KCkuZigpOwogICAgcmV0dXJuIDA7Cn0KCgo=