1 // { dg-do run } 2 #include <stdlib.h> 3 4 class A { 5 public: get(void)6 virtual void get (void) { } 7 }; 8 9 class B : public A { 10 public: get(void)11 void get (void) { abort (); } 12 }; 13 14 class C : public B { }; 15 main(void)16int main (void) 17 { 18 C c; 19 C * p = &c; 20 21 p->A::get (); 22 (p->A::get) (); // The C++ parser used to resolve this to B::get() 23 24 return 0; 25 } 26