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
/
friend24.C
blob
d312b3854ea9f256cbc83bf48be3b39a42ab5619
1
// Build don't link:
2
3
template <class T>
4
struct S
5
{
6
template <class U = T>
7
friend class S;
8
9
void f(T);
10
};
11
12
template struct S<int>;
13
14
void g()
15
{
16
S<> s;
17
s.f(3);
18
}