2 // GROUPS passed ARM-compliance
16 void A::set (f1 f) { std::cout << "called A f1\n";}
22 void B::set (f2 f) { std::cout << "called B\n";} // { dg-error "" } candidate
26 b.set(F1); // ARM page 309: should call A.set(f1) and that what g++ does,// { dg-error "" } .*
27 // but 13.1 of ARM clearly states that it should call B::set()
28 // or generate an error because overloading works only for
29 // functions within the same scope (first page of chapter 13)
30 // while member of derived and base classes are considered to
31 // belong to different scopes. Thus B::set() should have
32 // hidden (completely) the A::set() function.