1// PR c++/56543 2 3template <typename> 4struct S; 5 6template <typename T> 7struct U 8{ 9 typedef typename S <T>::template V <> W; 10 S <W> x; 11}; 12