Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
parse
/
access3.C
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" }
};