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
* gcc.dg/compat/struct-by-value-5a_main.c,
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
parse
/
access3.C
blob
43303c95a943e7ea491f16a0bbd8ea60d301dcdf
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-error "private" }
10
};
11
12
class B {
13
friend void A::f(); // { dg-error "context" }
14
};