This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/1770: G++ incorrectly allows access to private member



>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:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]