summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/typename14.C
blob: 2e3938329bea9fa7666ed884d1b892e615ff4d68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
// { dg-options "-Wno-deprecated" }

template <class T>
struct B {
  typedef T X;
};

template <class T>
struct S : public B<T>
{
  struct I {
    void f(X x);   // { dg-error "'X' has not been declared" } implicit typename
  };
};