Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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" }
};