aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.pt/typename22.C
blob: ce411bb6c8b92b5eec635155f0379f4592a15a46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do assemble  }
// Origin: Mark Mitchell <mark@codesourcery.com>

template <class T>
struct S {
  template <class U>
  struct I { 
    typedef U X;

    X f();
  };
};


template <class T>
template <class U>
typename S<T>::template I<U>::X S<T>::I<U>::f() {}