The bug report shows a fix in the (then current) mainline of 3.4 and doesn't show a backport to the 3.3 series. corey On 11/7/05, Javier Mena <javimena@xxxxxxxxx> wrote: > The page is: > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7906 > > I cannot compile the code with g++ 3.3.6. > > I'm using gentoo linux. > > Sorry, but I can't give you the error message right now. But is > similar to the message in web page. > > tTemplate.cc:19: no `Templated<T>::NonTemplated::operator std::vector<T, > std::allocator<_CharT> >::size_type() const' member function declared in > class `Templated<T>::NonTemplated' > tTemplate.cc:19: template definition of non-template ` > Templated<T>::NonTemplated::operator std::vector<T, std::allocator<_CharT> > >::size_type() const' > > > Thanks > > 2005/11/5, corey taylor <corey.taylor@xxxxxxxxx>: > > Javier, > > > > What bug are you referring to and what is the error message. You > > have to be more specific. > > > > corey > > > > On 11/5/05, Javier Mena <javimena@xxxxxxxxx> wrote: > > > Hi, > > > > > > I'm using gcc 3.3.6 and the following code doesn't compiles. what is happening? > > > > > > Thanks > > > > > > #include <vector> > > > > > > template <class T> > > > class Templated > > > { > > > private: > > > typedef std::vector<T> buf_t; > > > class NonTemplated > > > { > > > public: > > > operator typename buf_t::size_type() const; > > > private: > > > typename buf_t::size_type myIndex; > > > }; > > > }; > > > > > > template <class T> > > > Templated<T>::NonTemplated::operator typename > > > Templated<T>::buf_t::size_type() const > > > { > > > return myIndex; > > > } > > > > > > int main() > > > { > > > Templated<int> tmpl; > > > return 0; > > > } > > > > > > -- > > > Javier Andrés Mena Zapata > > > University of Valle > > > Cali - Colombia > > > > > > > > -- > Javier Andrés Mena Zapata > University of Valle > Cali - Colombia >