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
/
friend10.C
blob
bff432b5620bd3dde5a18e5c1f6c540129c2551a
1
template <class T>
2
void f(T);
3
4
template <class U>
5
class C
6
{
7
template <class T>
8
friend void f(T)
9
{
10
C<U> c;
11
c.i = 3;
12
}
13
14
public:
15
16
void g()
17
{
18
f(3.0);
19
}
20
21
int i;
22
};
23
24
int main()
25
{
26
f(7);
27
C<double> c;
28
c.g();
29
}