[gnu.g++.bug] Visibility problem in destructor

chatty%FRLRI61.BITNET@CUNYVM.CUNY.EDU (12/01/89)

// Looks like a visibility bug ...
// As far as I remember, this is g++ 1.36.2- with the patches posted on 11/29.

class A {
public:
        A ();
        ~A ();
};

class B : private A {
public:
        B ();
};


class C {
public:
        C ();
        ~C ();
};

class D: public C {
private:
        B b;
public:
        D ();
        ~D ();
};

D :: ~D ()
{
}

// % g++ -c bug.cc
// bug.cc: In method D::~D ():
// bug.cc:29: type `B' is derived from private `A'

// Stephane Chatty              chatty@lri.lri.fr
//                      chatty@frlri61.bitnet