From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27345 invoked by alias); 17 Jan 2003 19:06:03 -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 27324 invoked by uid 71); 17 Jan 2003 19:06:02 -0000 Resent-Date: 17 Jan 2003 19:06:02 -0000 Resent-Message-ID: <20030117190602.27323.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, rassahah@neofonie.de Received: (qmail 23838 invoked by uid 61); 17 Jan 2003 18:59:03 -0000 Message-Id: <20030117185903.23837.qmail@sources.redhat.com> Date: Fri, 17 Jan 2003 19:06:00 -0000 From: rassahah@neofonie.de Reply-To: rassahah@neofonie.de To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/9354: g++-3.4 segfault in template definition X-SW-Source: 2003-01/txt/msg01053.txt.bz2 List-Id: >Number: 9354 >Category: c++ >Synopsis: g++-3.4 segfault in template definition >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Fri Jan 17 11:06:01 PST 2003 >Closed-Date: >Last-Modified: >Originator: Rasmus Hahn >Release: gcc version 3.4 20030115 >Organization: >Environment: Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4/specs Configured with: : (reconfigured) : (reconfigured) Thread model: posix gcc version 3.4 20030115 (experimental) >Description: g++-3.4 segfaults on code below: $ g++ x.cc x.cc: In member function `void ObjectSlot0_::create()': x.cc:6: internal compiler error: Segmentation fault Please submit a full bug report,... Interesting: if i change the 'new T ()' to 'new char[3]', i get a segfault, too, but with a different message: $ g++ x.cc x.cc: In member function `void ObjectSlot0_::create()': x.cc:6: internal compiler error: tree check: expected class 't', have 'x' ( tree_list) in cp_parser_dependent_type_p, at cp/parser.c:1859 Please submit a full bug report,... the latter is a parser error, the former makes not clear where it comes from. Should this be two different bug-reports? This bug is new with gcc-3.4 (does not happen with 3.3 & older) >How-To-Repeat: x.cc: struct T; T* manage(T* t); template struct ObjectSlot0_ { void create() { void* tmp = manage(new T()); } }; >Fix: >Release-Note: >Audit-Trail: >Unformatted: