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
* ru.po: Update.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
friend2.C
blob
1f07f263fef2d77edf3637bd01f8735e7a08b742
1
// { dg-do compile }
2
3
// Origin: Albert Chin <bugzilla-gcc@thewrittenword.com>
4
// Wolfgang Bangerth <bangerth@dealii.org>
5
6
// PR c++/14513, unqualified lookup of friend class.
7
8
struct S {
9
void test (void);
10
};
11
12
namespace NS {
13
class X {
14
friend class S;
15
static int *i; // { dg-message "private" }
16
};
17
}
18
19
void S::test () {
20
NS::X::i; // { dg-error "this context" }
21
}