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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
friend.C
blob
4c517cbeee4c03a83e5bfbd761df5d966463d879
1
// Bug: g++ doesn't keep track of the lexical context of friends properly.
2
3
extern "C" void exit(int);
4
5
struct B;
6
struct A {
7
static void f () { exit (1); }
8
};
9
10
struct B {
11
static void f () { exit (0); }
12
friend void g () { f (); }
13
};
14
15
int main ()
16
{
17
g ();
18
}