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
/
memclass9.C
blob
824ee76f0c519df70433622ff8e55a73ac6ad9bf
1
// Build don't link:
2
3
template <class T>
4
struct S1
5
{
6
template <class U>
7
struct S2
8
{
9
S2(U);
10
11
void g()
12
{
13
S2<U> s2u (u);
14
}
15
16
U& u;
17
};
18
19
template <class U>
20
void f(U u)
21
{
22
S2<U> s2u(u);
23
s2u.g();
24
}
25
};
26
27
void g()
28
{
29
S1<int> s1;
30
s1.f(3.0);
31
}
32