// { dg-options "-std=c++0x" } template struct A { typedef typename T::X Y; // { dg-error "not expanded|T" } }; A a;