Merge from trunk
[official-gcc.git] / gcc / testsuite / g++.dg / template / memclass5.C
blobeb32f13c916e7a417d9d02d446cd8bbce2158149
1 // PR c++/60241
3 template <typename T>
4 struct x
6     template <typename U>
7     struct y
8     {
9         typedef T result2;
10     };
12     typedef y<int> zy;
15 template<>
16 template<class T>
17 struct x<int>::y
19     typedef double result2;
22 int main()
24     x<int>::zy::result2 xxx;
25     x<int>::y<int>::result2 xxx2;