921e5a0eb4
From-SVN: r14840
27 lines
491 B
C
27 lines
491 B
C
// Build don't link:
|
|
// GROUPS passed visibility
|
|
// visibility file
|
|
// From: gfm@mencon.mencon.oz.au (Graham Menhennitt)
|
|
// Date: Wed, 17 Nov 93 21:30:32 EST
|
|
// Subject: gcc 2.5.3 - can't privately inherit and contain same class
|
|
// Message-ID: <9311171030.AA00604@mencon>
|
|
#include <iostream.h>
|
|
|
|
class A {
|
|
public:
|
|
A(void);
|
|
};
|
|
|
|
class B : private A {
|
|
public:
|
|
B(void) : A() {}
|
|
};
|
|
|
|
class C : public B {
|
|
public:
|
|
C(void) : B(), a() {}
|
|
|
|
private:
|
|
A a;
|
|
};
|