This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/1770: G++ incorrectly allows access to private member
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/1770: G++ incorrectly allows access to private member
- From: dje at watson dot ibm dot com
- Date: 25 Jan 2001 18:12:15 -0000
- Reply-To: dje at watson dot ibm dot com
>Number: 1770
>Category: c++
>Synopsis: G++ incorrectly allows access to private member
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: accepts-illegal
>Submitter-Id: net
>Arrival-Date: Thu Jan 25 10:16:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: dje@watson.ibm.com
>Release: gcc-2.95, gcc-2.96RH, gcc-2.97
>Organization:
>Environment:
powerpc-ibm-aix4.3.3.0
>Description:
G++ silently allows access to a private member. Example
taken from C++ spec, section 11.8:
class E {
int x;
class B{};
class I {
B b; // error E::B is private
};
};
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: