1 2 3 4 5 6 7 8 9 10 11 12 13 14
// PR c++/48489 struct Base{ }; struct Concrete : Base { void setValue(); }; int main() { Concrete d; d.Base::setValue(); // { dg-error "struct Base" } }