* GCC bug reappears
@ 2005-11-05 22:54 Javier Mena
2005-11-06 4:14 ` corey taylor
0 siblings, 1 reply; 5+ messages in thread
From: Javier Mena @ 2005-11-05 22:54 UTC (permalink / raw)
To: gcc-help
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: GCC bug reappears
2005-11-05 22:54 GCC bug reappears Javier Mena
@ 2005-11-06 4:14 ` corey taylor
[not found] ` <80537a260511070703j6be943cfg@mail.gmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: corey taylor @ 2005-11-06 4:14 UTC (permalink / raw)
To: Javier Mena; +Cc: gcc-help
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
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: GCC bug reappears
[not found] ` <80537a260511070703j6be943cfg@mail.gmail.com>
@ 2005-11-08 16:47 ` corey taylor
2005-11-08 20:52 ` Javier Mena
0 siblings, 1 reply; 5+ messages in thread
From: corey taylor @ 2005-11-08 16:47 UTC (permalink / raw)
To: Javier Mena, gcc-help
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@gmail.com> 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@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
> > >
> >
>
>
> --
> Javier Andrés Mena Zapata
> University of Valle
> Cali - Colombia
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: GCC bug reappears
2005-11-08 16:47 ` corey taylor
@ 2005-11-08 20:52 ` Javier Mena
2005-11-08 20:57 ` corey taylor
0 siblings, 1 reply; 5+ messages in thread
From: Javier Mena @ 2005-11-08 20:52 UTC (permalink / raw)
To: corey taylor; +Cc: gcc-help
Excuse, but I can't understand you (my native language is not the english).
What does exactly means "doesn't show a backport to the 3.3 series"?.
They know the problem and will not solve it?
They don't know the problem and don't care about that?
Thanks.
2005/11/8, corey taylor <corey.taylor@gmail.com>:
> 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@gmail.com> 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@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
> > > >
> > >
> >
> >
> > --
> > Javier Andrés Mena Zapata
> > University of Valle
> > Cali - Colombia
> >
>
--
Javier Andrés Mena Zapata
University of Valle
Cali - Colombia
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: GCC bug reappears
2005-11-08 20:52 ` Javier Mena
@ 2005-11-08 20:57 ` corey taylor
0 siblings, 0 replies; 5+ messages in thread
From: corey taylor @ 2005-11-08 20:57 UTC (permalink / raw)
To: Javier Mena; +Cc: gcc-help
They fixed it for the new gcc (3.4 +) as far as I can tell.
corey
On 11/8/05, Javier Mena <javimena@gmail.com> wrote:
> Excuse, but I can't understand you (my native language is not the english).
>
> What does exactly means "doesn't show a backport to the 3.3 series"?.
>
> They know the problem and will not solve it?
> They don't know the problem and don't care about that?
>
> Thanks.
>
> 2005/11/8, corey taylor <corey.taylor@gmail.com>:
> > 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@gmail.com> 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@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
> > > > >
> > > >
> > >
> > >
> > > --
> > > Javier Andrés Mena Zapata
> > > University of Valle
> > > Cali - Colombia
> > >
> >
>
>
> --
> Javier Andrés Mena Zapata
> University of Valle
> Cali - Colombia
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-11-08 20:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-05 22:54 GCC bug reappears Javier Mena
2005-11-06 4:14 ` corey taylor
[not found] ` <80537a260511070703j6be943cfg@mail.gmail.com>
2005-11-08 16:47 ` corey taylor
2005-11-08 20:52 ` Javier Mena
2005-11-08 20:57 ` corey taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).