Commit d2e7ab70 by Jason Merrill

update

From-SVN: r31955
parent 97ce4a51
......@@ -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;
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment