Debian Codegraph @

gcc/testsuite/g++.dg/template/memclass5.C

raw
1 // PR c++/60241
2
3 template <typename T>
4 struct x
5 {
6 template <typename U>
7 struct y
8 {
9 typedef T result2;
10 };
11
12 typedef y<int> zy;
13 };
14
15 template<>
16 template<class T>
17 struct x<int>::y
18 {
19 typedef double result2;
20 };
21
22 int main()
23 {
24 x<int>::zy::result2 xxx;
25 x<int>::y<int>::result2 xxx2;
26 }