bar2 baz (X::Y y) // { dg-error "" } in this context { X::Y f; // { dg-error "" } in this context bar2 wa [5]; wa[0] = baz(f); undef2 (1); // { dg-error "" } implicit declaration } // { dg-warning "no return statement" }
int Y::X::* foo () { undef2(1);// ERROR - foo().* return &Y::X::A; }