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