This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/6749: ...
- From: Nathanael Nerode <neroden at twcny dot rr dot com>
- To: gcc-gnats at gcc dot gnu dot org, rullo dot pat at tiscalinet dot it, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: Wed, 22 Jan 2003 22:40:53 -0500
- Subject: Re: c++/6749: ...
- Reply-to: neroden at twcny dot rr dot com
I've cut the testcase down to the following:
template <class T> class inner {
public:
inner<T>() { }
};
template <class T> class parent {
public:
virtual parent<inner<T> >* f() ;
};
template <class T> class child: public parent<T> {
public:
parent<inner<T> >* f()
{ return new child<inner<T> >; }
};
int main()
{
parent<int> x ;
child<int> y ;
return 0;
}
I'm having trouble with my GCC build, so I haven't tested it on a current
version yet.