This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: Parse error with member templates


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



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