This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Internal Compiler Error in templated member fn handling
- To: rob dot taylor at ukonline dot co dot uk
- Subject: Re: Internal Compiler Error in templated member fn handling
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Sat, 25 Mar 2000 18:04:33 +0100
- CC: gcc-bugs at gcc dot gnu dot org
- References: <38D8C6A7.2E31DE7D@ukonline.co.uk>
> find attached a bug report. It's pretty self explanitory.
Thanks for your bug report. I've put it into GNATS. FYI, your code was
ill-formed; writing
class test
{
template<class DOG>
test &do_domething(const DOG &d);
};
template<class DOG>
test &test::do_domething(const DOG &d)
{
typename DOG::pants i;
return *this;
}
solves the problem.
Regards,
Martin