2 // GROUPS passed access
4 // From: Jeffrey C. Gealow <jgealow@mtl.mit.edu>
5 // Date: Thu, 18 Feb 93 10:22:23 -0500
6 // Subject: nested class access control bug
7 // Message-ID: <9302181522.AA29209@mtl.mit.edu>
12 class nested_public { int x; };
14 class nested_protected { int x; };
16 class nested_private { int x; }; // { dg-error "" } private
19 class derived : public enclose {
20 nested_public obj1; // ok
21 nested_protected obj2; // ok
22 nested_private obj3; // error// { dg-error "" } in this context