[PATCH] Adjust testsuite and rope for "Deprecated implicit typename"

Jason Merrill jason@redhat.com
Wed Dec 12 18:27:00 GMT 2001


>>>>> "Paolo" == Paolo Carlini <pcarlini@unitus.it> writes:

>      _Rope_iterator& operator= (const _Rope_iterator& __x) {
> -        _RopeRep* __old = _M_root;
> +        typename
> +   _Rope_iterator_base<_CharT,_Alloc>::_RopeRep* __old = _M_root;

This could just be

  typename _Rope_iterator::_RopeRep*

but there are other uses of _RopeRep that aren't currently warned about,
but that will also break with the new parser.  You probably want to make it
a local typedef.

Jason



More information about the Libstdc++ mailing list