This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: GCC bug reappears
- From: corey taylor <corey dot taylor at gmail dot com>
- To: Javier Mena <javimena at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sat, 5 Nov 2005 22:14:16 -0600
- Subject: Re: GCC bug reappears
- References: <80537a260511051454y52b4656co@mail.gmail.com>
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
>