This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Template member type problem
- To: Joe Morris <morris50 at llnl dot gov>
- Subject: Re: Template member type problem
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 16 Jun 2000 00:12:40 -0300
- Cc: bug-gcc at gnu dot org
- Organization: GCC Team, Red Hat
- References: <39499506.ECE8520B@llnl.gov>
On Jun 15, 2000, Joe Morris <morris50@llnl.gov> wrote:
> template<typename X>
> void tryit(X &x) {
> X::pnt_myclass xpnt=&x; // This will not parse
^ Add `typename' here. Template-dependent type names must be
preceded by this keyword.
--
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