1 // PR c++/17501 2 3 template<int> struct A; 4 5 template<> struct A<0> 6 { 7 struct B 8 { 9 struct C 10 { 11 typedef int D; 12 }; 13 }; 14 }; 15 16 template<int I> struct E 17 { 18 typename A<I>::B::C::D i; 19 }; 20