This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/4903: internal compiler error 19990331
- From: lerdsuwa at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, theverylittleone at hotmail dot com
- Date: 22 Nov 2001 15:05:38 -0000
- Subject: Re: c++/4903: internal compiler error 19990331
[Get raw message]
Synopsis: internal compiler error 19990331
State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Thu Nov 22 07:05:37 2001
State-Changed-Why:
Confirmed. The code is illegal though. There should be
'typename' keyword prefix 'A<T>::template B<U>', like
typename A<T>::template B<U> foo(void);
Also, the keyword 'template' inside main() should be
removed. It is only legal inside class/function templates.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4903&database=gcc