From-SVN: r31955
This commit is contained in:
Jason Merrill 2000-02-13 14:07:43 -05:00
parent 97ce4a51fa
commit d2e7ab702f
3 changed files with 4 additions and 4 deletions

View file

@ -10,7 +10,7 @@ struct Z {
struct A : private Z { };
struct B : public A
{
Z foo;
::Z foo;
B();
B(const B&);
};

View file

@ -13,12 +13,12 @@ public:
protected:
class nested_protected { int x; };
private:
class nested_private { int x; };
class nested_private { int x; }; // ERROR - private
};
class derived : public enclose {
nested_public obj1; // ok
nested_protected obj2; // ok
nested_private obj3; // error// ERROR - .* , XFAIL *-*-*
nested_private obj3; // error// ERROR - in this context
};

View file

@ -22,5 +22,5 @@ public:
C(void) : B(), a() {}
private:
A a;
::A a;
};