summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/typename20.C
blob: 215ded440cfff135b0bdb80845fa70397edeefb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do assemble  }
// { dg-options "" }
// Origin: Mark Mitchell <mark@codesourcery.com>

template <class T>
struct B {
  typedef int I;
};

template <class T, class X = int>
struct S : public B <T> {
  struct I {
  };

  void f(int i = true) {}
};