2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / template / memclass2.C
blobda79d6afe02d8c65561a797785fb6fe9e6f980ad
1 namespace ns {
2   template<typename T>
3   struct Foo {
4     template<typename U> struct Bar;
5   };
6   
7   template<typename T>
8   template<typename U>
9   struct Foo<T>::Bar {
10     template<typename V> struct Baz;
11   };
12   
13   template<typename T>
14   template<typename U>
15   template<typename V>
16   struct Foo<T>::Bar<U>::Baz {
17     Foo<T> chokes;
18     ns::Foo<T> works;
19   };