From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13702 invoked by alias); 29 Jan 2003 09:16:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 13683 invoked by uid 71); 29 Jan 2003 09:16:00 -0000 Date: Wed, 29 Jan 2003 09:16:00 -0000 Message-ID: <20030129091600.13674.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "Giovanni Bajo" Subject: Re: c++/9460: parse error on template member function Reply-To: "Giovanni Bajo" X-SW-Source: 2003-01/txt/msg01657.txt.bz2 List-Id: The following reply was made to PR c++/9460; it has been noted by GNATS. From: "Giovanni Bajo" To: "Wolfgang Bangerth" , "Oliver Schoenborn" Cc: , Subject: Re: c++/9460: parse error on template member function Date: Wed, 29 Jan 2003 10:09:39 +0100 ----- Original Message ----- From: "Wolfgang Bangerth" To: "Oliver Schoenborn" Cc: 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 (); > in which case you would have to use > Foo().template F1 (); Sorry for the confusion. The problem is, the compiler still has symmetric behaviour: Foo().F1() 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