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
/
typename13.C
blob
0facf6631559a46903114424a3a5cea8048a57ac
1
// Build don't link:
2
// Special g++ Options:
3
// excess errors test
4
5
template <class T>
6
struct B
7
{
8
typedef int I;
9
};
10
11
12
template <class T>
13
struct D : public B<T>
14
{
15
void f();
16
};
17
18
19
template <class T>
20
void D<T>::f()
21
{
22
I();
23
}
24
25
26
template <>
27
struct B<int>
28
{
29
void I();
30
};
31
32
33
int main()
34
{
35
D<int> di;
36
di.f();
37
}