From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9080 invoked by alias); 18 Mar 2003 21:06: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 9050 invoked by uid 71); 18 Mar 2003 21:06:00 -0000 Resent-Date: 18 Mar 2003 21:06:00 -0000 Resent-Message-ID: <20030318210600.9049.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, rodrigo@esss.com.br Received: (qmail 21652 invoked by uid 48); 18 Mar 2003 20:57:06 -0000 Message-Id: <20030318205706.21650.qmail@sources.redhat.com> Date: Tue, 18 Mar 2003 21:06:00 -0000 From: rodrigo@esss.com.br Reply-To: rodrigo@esss.com.br To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/10141: Member template parsing problem X-SW-Source: 2003-03/txt/msg01235.txt.bz2 List-Id: >Number: 10141 >Category: c++ >Synopsis: Member template parsing problem >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Tue Mar 18 21:06:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Rodrigo Lucianetti >Release: 3.2.2 >Organization: >Environment: linux redhat 8.0,dual AMD athlon MP 1800 >Description: bug.cpp: In member function `unsigned int Foo2::Bar(Foo)': bug.cpp:18: parse error before `;' token >How-To-Repeat: c++ -c -o bug.o bug.cpp >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: text/plain; name="bug.cpp" Content-Disposition: inline; filename="bug.cpp" template class Foo { public: template unsigned Bar() { return 0; } }; template class Foo2 { public: template unsigned Bar( Foo foo ) { return foo.NumOf(); } }; int main() { Foo foo; foo.Bar(); Foo2 foo2; foo2.Bar( foo ); return 0; }