update
From-SVN: r31955
This commit is contained in:
parent
97ce4a51fa
commit
d2e7ab702f
3 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,7 @@ struct Z {
|
|||
struct A : private Z { };
|
||||
struct B : public A
|
||||
{
|
||||
Z foo;
|
||||
::Z foo;
|
||||
B();
|
||||
B(const B&);
|
||||
};
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
||||
|
|
|
@ -22,5 +22,5 @@ public:
|
|||
C(void) : B(), a() {}
|
||||
|
||||
private:
|
||||
A a;
|
||||
::A a;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue