// { dg-do compile }// Origin: Wolfgang Bangerth <wolfgang.bangerth@iwr.uni-heidelberg.de>// PR c++/7347// Access control for typename during instantiationtemplate<intdim>classBase{protected:typedefintT;};template<intdim>classD:publicBase<dim>{public:typedeftypenameBase<dim>::TT1;D(T1t);};D<2>d(1);