blob: 7c8abff91b483b1aeaa0fac55f776ae5d043b2bd [file] [log] [blame]
// { dg-do compile }
// Origin: <bagnara@cs.unipr.it>
// PR c++/7809: Befriending inaccessible name.
class A {
private:
void f(); // { dg-message "private" }
};
class B {
friend void A::f(); // { dg-error "context" }
};