2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / typename13.C
blob385834b959d33e3f69a6f6a6841d7af6bc1589a6
1 // { dg-do assemble  }
2 // { dg-options "-fpermissive" }
4 template <class T>
5 struct B 
7   typedef int I;
8 };
11 template <class T>
12 struct D : public B<T>
14   void f();
18 template <class T>
19 void D<T>::f()
21   I(); // { dg-warning "" }
25 template <>
26 struct B<int> 
28   void I();
32 int main()
34   D<int> di;
35   di.f();