Internal Compiler Error in templated member fn handling

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Sat Mar 25 09:10:00 GMT 2000


> 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


More information about the Gcc-bugs mailing list