This is the mail archive of the gcc-prs@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: c++/9460: parse error on template member function


The following reply was made to PR c++/9460; it has been noted by GNATS.

From: "Giovanni Bajo" <giovannibajo@libero.it>
To: "Wolfgang Bangerth" <bangerth@ticam.utexas.edu>,
	"Oliver Schoenborn" <oliver.schoenborn@utoronto.ca>
Cc: <gcc-gnats@gcc.gnu.org>,
	<gcc-bugs@gcc.gnu.org>
Subject: Re: c++/9460: parse error on template member function
Date: Wed, 29 Jan 2003 10:09:39 +0100

 ----- Original Message -----
 From: "Wolfgang Bangerth" <bangerth@ticam.utexas.edu>
 To: "Oliver Schoenborn" <oliver.schoenborn@utoronto.ca>
 Cc: <gcc-gnats@gcc.gnu.org>
 Sent: Tuesday, January 28, 2003 10:14 PM
 Subject: Re: c++/9460: parse error on template member function
 
 > It would be different if you would call
 >   Foo().F1<A> ();
 > in which case you would have to use
 >   Foo().template F1<A> ();
 
 Sorry for the confusion. The problem is, the compiler still has symmetric
 behaviour:
 
 Foo().F1<A>() compiles with no errors, while it needs the template keyword.
 (accept-illegal)
 In my first code snippet, if you remove Bar::F1, the code fails to compile.
 (reject-legal).
 
 Giovanni Bajo
 


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