Thread View: gnu.g++.bug
1 messages
1 total messages
Started by chatty%FRLRI61.BITNET
Fri, 01 Dec 1989 15:48
Visibility problem in destructor
Author: chatty%FRLRI61.BITNET
Date: Fri, 01 Dec 1989 15:48
Date: Fri, 01 Dec 1989 15:48
39 lines
1022 bytes
1022 bytes
// 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads