This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Parse error with member templates
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Matt Austern <austern at apple dot com>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Sat, 14 Sep 2002 00:25:34 -0700
- Subject: 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