Title
Access to members of indirect private base classes
Status
cd1
Section
11.8.3 [class.access.base]
Submitter
unknown

Created on 1998-10-24.00:00:00 last changed 197 months ago

Messages

Date: 2001-04-15.00:00:00

[Moved to DR at 4/01 meeting.]

Date: 2001-04-15.00:00:00

[Moved to DR at 4/01 meeting.]

Date: 2022-11-20.07:54:16

The text in 11.8.3 [class.access.base] paragraph 4 does not seem to handle the following cases:

    class D;

    class B {
    private:
        int i;
        friend class D;
    };

    class C : private B { };

    class D : private C {
        void f() {
            B::i; //1: well-formed?
            i;    //2: well-formed?
        }
    };
The member i is not a member of D and cannot be accessed in the scope of D. What is the naming class of the member i on line //1 and line //2?

Proposed Resolution (04/01): The resolution for this issue is contained in the resolution for issue 9..

History
Date User Action Args
2008-10-05 00:00:00adminsetstatus: wp -> cd1
2003-04-25 00:00:00adminsetstatus: dr -> wp
2002-05-10 00:00:00adminsetmessages: + msg678
2001-05-20 00:00:00adminsetstatus: ready -> dr
2000-11-18 00:00:00adminsetstatus: review -> ready
2000-02-23 00:00:00adminsetstatus: drafting -> review
1999-09-14 00:00:00adminsetmessages: + msg99
1999-09-14 00:00:00adminsetstatus: open -> drafting
1998-10-24 00:00:00admincreate