1// Contributed by Cary Coutant <ccoutant@google.com>
2// Origin: PR debug/41063
3// { dg-do compile }
4
5struct A {
6  virtual void run();
7};
8
9void test() {
10  struct B : public A {
11    void run() {
12      struct C : public A {
13	C() { }
14	B *b_;
15      };
16      C c;
17    }
18  };
19  B b;
20}
21