1 2 3 4 5 6 7 8 9
// PR c++/51588 enum A {}; struct B : A { // { dg-error "" } int i; }; int A::* p = &B::i; // { dg-error "" }