typedef bug in egcs 1.1.2 on Solaris 7.0

Mumit Khan khan@xraylith.wisc.EDU
Wed Apr 28 08:39:00 GMT 1999


Johannes Behr <jbehr@igd.fhg.de> writes:
> 
> -------------------------------------------------------------------
> #include <list.h>

  #include <list>
  using namespace std;

You just missed the required typename keyword in various places.

> 
> template <class T> class A {
> 
> 	list<T> _value;
> 
> public:
> 
> 	typedef list<T>::iterator valueIterator;

        typedef typename list<T>::iterator valueIterator;
> 
> 	list<T>::iterator begin(void) { return _value.begin(); }

 	typename list<T>::iterator begin(void) { return _value.begin(); }
> 
> 	list<T>::iterator end(void) { return _value.end(); }

 	typename list<T>::iterator end(void) { return _value.end(); }
>       

Regards,
Mumit



More information about the Gcc-bugs mailing list