2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / typename16.C
blob34021950da0c084a4dbb383c2d0cabedf1407ca5
1 // { dg-do link  }
2 // { dg-options "-Wno-deprecated" }
4 struct B {
5   typedef int I;
6 };
8 template <class T>
9 struct D1 : public B {
12 template <class T>
13 struct D2 : public D1<T> {
14   I i;  // { dg-error "" } not a type
17 template <>
18 struct D1<int> {
19   typedef double I;
22 template <class T>
23 void f(T);
24 template <>
25 void f(double) {}
27 int main()
29   D2<int> d2i;
30   f(d2i.i); // { dg-error "" } no member i