From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16178 invoked by alias); 22 Jan 2003 21: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 16155 invoked by uid 71); 22 Jan 2003 21:16:01 -0000 Resent-Date: 22 Jan 2003 21:16:01 -0000 Resent-Message-ID: <20030122211601.16154.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, rguenth@tat.physik.uni-tuebingen.de Received: (qmail 14340 invoked by uid 48); 22 Jan 2003 21:10:05 -0000 Message-Id: <20030122211005.14339.qmail@sources.redhat.com> Date: Wed, 22 Jan 2003 21:16:00 -0000 From: rguenth@tat.physik.uni-tuebingen.de Reply-To: rguenth@tat.physik.uni-tuebingen.de To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/9407: [3.4 regression] Parser bug X-SW-Source: 2003-01/txt/msg01247.txt.bz2 List-Id: >Number: 9407 >Category: c++ >Synopsis: [3.4 regression] Parser bug >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Wed Jan 22 21:16:01 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Richard Guenther >Release: g++ (GCC) 3.4 20030122 (experimental) >Organization: >Environment: ix86-linux >Description: The following testcase is rejected by the new C++ parser and accepted by earlier g++ and EDG in strict mode. template struct Foo { struct Bar { Bar(int); }; }; template struct Baz : public Foo { void foo() { Foo::Bar(1); } }; int main() { Baz<3> baz; baz.foo(); return 0; } ~/ix86/gcc3.4/bin/g++ -c parser2.cpp parser2.cpp: In member function `void Baz::foo() [with int Dim = 3]': parser2.cpp:19: instantiated from here parser2.cpp:12: error: no match for call to `(Foo<3>::Bar) (int)' >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: