This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Parse error with member templates
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- Cc: gcc at gcc dot gnu dot org, patrick at 137 dot org
- Date: Wed, 18 Sep 2002 23:59:45 +0100
- Subject: Re: Parse error with member templates
- Organization: Codesourcery LLC
- References: <200209182244.g8IMi120069726@latour.rsch.comm.mot.com>
Loren James Rittle wrote:
Try this implementation of B<T>::toString():
std::string toString() const
{
return mObj.template getValue<std::string>();
}
Whilst this does fix the problem g++ has, g++ does have compliance bugs
in this area. I think this is one of them. mObj does not have a dependant
type, so IIRC getValue will be looked up and bound at parse time,
making the explicit template unnecessary.
Patrick, this is a known bug, search the suspended gnats bugs for a subject
containing 'parser'
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org