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++.pt
/
friend4.C
blob
ea439277c5a9bbeec76065f7e75092a54415ed7c
1
class C
2
{
3
template <class T>
4
friend void f(T);
5
6
int i;
7
};
8
9
10
template <class T>
11
void f(T)
12
{
13
C c;
14
c.i = 3;
15
}
16
17
18
int main()
19
{
20
f(7);
21
}