// PR c++/11987template<intdim>structX{structI{I();};};template<intdim>structY:X<dim>{typedeftypenameX<dim>::II;};// note: I is nested type in X, not Y!template<intdim>Y<dim>::I::I(){}// { dg-error "dependent typedef" }// { dg-error "no type|dependent type" "" { target *-*-* } 13 }templatestructY<1>;