// PR c++/50852 template class A; template struct B {typedef int K;typedef int L;}; template struct C { typedef typename U::L X; typedef A W; // { dg-error "not a member" } }; template struct D { typedef typename U::L X; typedef A W; // the error should really be on this line }; template class D >,3>;