OSDN Git Service

cp:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / typename13.C
1 // Build don't link:
2 // Special g++ Options:
3 // excess errors test - XFAIL *-*-*
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 }