repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
parse
/
access3.C
blob
7c8abff91b483b1aeaa0fac55f776ae5d043b2bd
1
// { dg-do compile }
2
3
// Origin: <bagnara@cs.unipr.it>
4
5
// PR c++/7809: Befriending inaccessible name.
6
7
class A {
8
private:
9
void f(); // { dg-message "private" }
10
};
11
12
class B {
13
friend void A::f(); // { dg-error "context" }
14
};