This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Template function problem
- To: "Oakham, Geoff" <Geoff dot Oakham at cognos dot com>
- Subject: Re: Template function problem
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 15 Jun 2000 16:41:44 -0300
- Cc: "'gcc-bugs at gcc dot gnu dot org'" <gcc-bugs at gcc dot gnu dot org>
- Organization: GCC Team, Red Hat
- References: <430F887D415DD1118C2700805F31ECF103AFB94B@sota0005.cognos.com>
On Jun 15, 2000, "Oakham, Geoff" <Geoff.Oakham@cognos.com> wrote:
> template <class _myK>
> void sample_function (_myK a)
> {
> _myK::q blah;
^ you're missing the `typename' keyword here. It's required for
template-dependent typenames.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me