This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC bug reappears


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@gmail.com> 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
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]