aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/memclass2.C
blob: da79d6afe02d8c65561a797785fb6fe9e6f980ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
namespace ns {
  template<typename T>
  struct Foo {
    template<typename U> struct Bar;
  };
  
  template<typename T>
  template<typename U>
  struct Foo<T>::Bar {
    template<typename V> struct Baz;
  };
  
  template<typename T>
  template<typename U>
  template<typename V>
  struct Foo<T>::Bar<U>::Baz {
    Foo<T> chokes;
    ns::Foo<T> works;
  };
}