blob: caf685c3eced4e43ad4e84554065575e68521102 [file] [log] [blame]
// PR c++/25492
class Base {
public:
class Nested {};
};
class Derived:public Base {
public:
class Nested {
public:
void m();
};
class AnotherNested {
friend class Nested;
AnotherNested() {}
};
};
void Derived::Nested::m() {
Derived::AnotherNested instance;
}