OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* call.c (build_over_call): Do name resolution for default
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
defarg4.C
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