1// PR c++/5658
2
3// Copyright (C) 2002 Free Software Foundation, Inc.
4// Contributed by Theodore.Papadopoulo 11 Feb 2002 <Theodore.Papadopoulo@sophia.inria.fr>
5
6struct A {
7    typedef int iterator;
8};
9template <typename T>
10struct B: public A {
11    template <typename U>
12    struct iterator {
13    };
14    B() { }
15};
16int main()
17{
18    B<int> a;
19}
20