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
/
defarg4.C
blob
9d5df8cf2a35b4eb64659e2a9128ffe1cb85c1f8
1
// Build don't link:
2
3
template <class T>
4
struct S1
5
{
6
void foo(T = t());
7
8
static T t();
9
};
10
11
12
template <class T>
13
struct S2
14
{
15
void bar();
16
};
17
18
19
template <class T>
20
void S2<T>::bar ()
21
{
22
S1<T> st;
23
st.foo();
24
}
25
26
27
int main()
28
{
29
S2<int> s2i;
30
s2i.bar();
31
}
32