This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Internal Compiler Error in templated member fn handling


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]