From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11135 invoked by alias); 24 Jan 2003 11:16:00 -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 11109 invoked by uid 71); 24 Jan 2003 11:16:00 -0000 Resent-Date: 24 Jan 2003 11:16:00 -0000 Resent-Message-ID: <20030124111600.11108.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 7813 invoked by uid 48); 24 Jan 2003 11:07:31 -0000 Message-Id: <20030124110731.7812.qmail@sources.redhat.com> Date: Fri, 24 Jan 2003 11: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++/9432: [3.4 regression] ICE in validate_nonmember_using_decl, at cp/decl2.c:4152 X-SW-Source: 2003-01/txt/msg01413.txt.bz2 List-Id: >Number: 9432 >Category: c++ >Synopsis: [3.4 regression] ICE in validate_nonmember_using_decl, at cp/decl2.c:4152 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-illegal-code >Submitter-Id: net >Arrival-Date: Fri Jan 24 11:16:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Richard Guenther >Release: g++-3.4 (GCC) 3.4 20030124 (experimental) >Organization: >Environment: ix86-linux >Description: The following testcase ICEs with using2.cpp: In member function `void Bar::foo()': using2.cpp:6: internal compiler error: in validate_nonmember_using_decl, at cp/decl2.c:4152 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Maybe this is even legal ISO C++? Pulling the using declaration to class scope makes the ICE go away. Previous (old parser) g++ give a parse error on the code, my available EDG based compiler (intel icpc) ICEs, too. template struct Foo; template struct Bar : public Foo { void foo() { using Foo::i; } }; >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: