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




--On Friday, September 13, 2002 12:03:40 PM -0700 Matt Austern <austern@apple.com> wrote:

The following snippet fails to compile:
   struct X {
     template <class T> T* f()  { return (T*) 0; }
   };

   template <class T>
   int* g(T) {
     X x;
     return x.f<int>();
   }
Known bug, fixed in my new parser. :-)

--
Mark Mitchell                mark@codesourcery.com
CodeSourcery, LLC            http://www.codesourcery.com


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