2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / template / inherit2.C
blob4fd7ec063eeaeb6ce1a04ffbb9235de18df4f4e8
1 // PR c++/5658
3 // Copyright (C) 2002 Free Software Foundation, Inc.
4 // Contributed by Theodore.Papadopoulo 11 Feb 2002 <Theodore.Papadopoulo@sophia.inria.fr>
6 struct A {
7     typedef int iterator;
8 };
9 template <typename T>
10 struct B: public A {
11     template <typename U>
12     struct iterator {
13     };
14     B() { }
16 int main() 
18     B<int> a;