// Origin PR c++/43800 // { dg-do compile } template struct V { typedef T t_type; }; template class J { typedef typename V::t_type t_type; const t_type& f(); // #0: private: t_type b; }; template const typename V::t_type& J::f() {return b;} // #1