aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/nested-template.cpp
blob: 9562bcb51ef7643d6fa7410efcce9ee6feebddd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// RUN: clang-cc -fsyntax-only -verify %s

class A;

class S {
public:
   template<typename T> struct A { 
     struct Nested {
       typedef T type;
     };
   };
};

int i;
S::A<int>::Nested::type *ip = &i;

template<typename T>
struct X0 {
  template<typename U> void f0(T, U);
  
  template<typename U>
  struct Inner0 {
    void f1(T, U);
  };
};

template<typename X> template<typename Y> void X0<X>::f0(X, Y) { }

// FIXME:
// template<typename X> template<typename Y> void X0<X>::Inner0<Y>::f1(X, Y) { }