From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5440 invoked by alias); 24 Feb 2003 08:06:02 -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 5416 invoked by uid 71); 24 Feb 2003 08:06:01 -0000 Resent-Date: 24 Feb 2003 08:06:01 -0000 Resent-Message-ID: <20030224080601.5415.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, snyder@fnal.gov Received: (qmail 4985 invoked from network); 24 Feb 2003 08:02:52 -0000 Received: from unknown (HELO localhost.localdomain) (131.225.227.52) by 172.16.49.205 with SMTP; 24 Feb 2003 08:02:52 -0000 Received: (from sss@localhost) by localhost.localdomain (8.11.6/8.11.6) id h1O836A13240; Mon, 24 Feb 2003 03:03:06 -0500 Message-Id: <200302240803.h1O836A13240@localhost.localdomain> Date: Mon, 24 Feb 2003 08:06:00 -0000 From: snyder@fnal.gov Reply-To: snyder@fnal.gov To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: 3.113 Subject: c++/9823: ICE in sort_mem_initializers X-SW-Source: 2003-02/txt/msg01231.txt.bz2 List-Id: >Number: 9823 >Category: c++ >Synopsis: ICE in sort_mem_initializers >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-illegal-code >Submitter-Id: net >Arrival-Date: Mon Feb 24 08:06:01 UTC 2003 >Closed-Date: >Last-Modified: >Originator: scott snyder >Release: 3.4 20030224 (experimental) >Organization: >Environment: System: Linux karma 2.4.19-emp_2419p5a829i #1 Tue Sep 3 17:42:17 EST 2002 i686 unknown Architecture: i686 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: ../gcc/configure --prefix=/usr/local/gcc --enable-threads=posix --enable-long-long : (reconfigured) >Description: g++ crashes on the (invalid) code below: [sss@karma gcc]$ ./cc1plus x.cc x.cc:1: error: `ACE_Process_Descriptor' is not a class-name or namespace-name x.cc:2: error: ISO C++ forbids declaration of `ACE_Process_Descriptor' with no type int ACE_Process_Descriptor() x.cc:2: error: only constructors take base initializers x.cc:3: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. $ Here's where it's crashing: Program received signal SIGSEGV, Segmentation fault. 0x08179227 in sort_mem_initializers (t=0x0, mem_inits=0x0) at ../../gcc/gcc/cp/init.c:480 480 for (base = CLASSTYPE_VBASECLASSES (t); base; base = TREE_CHAIN (base)) (gdb) where #0 0x08179227 in sort_mem_initializers (t=0x0, mem_inits=0x0) at ../../gcc/gcc/cp/init.c:480 #1 0x08179dd4 in emit_mem_initializers (mem_inits=0x0) at ../../gcc/gcc/cp/init.c:657 #2 0x081969d5 in finish_mem_initializers (mem_inits=0x0) at ../../gcc/gcc/cp/semantics.c:1168 #3 0x08142dc1 in cp_parser_mem_initializer_list (parser=0x4005f0c0) at ../../gcc/gcc/cp/parser.c:7217 #4 0x08142d4e in cp_parser_ctor_initializer_opt (parser=0x4005f0c0) at ../../gcc/gcc/cp/parser.c:7176 #5 0x08147688 in cp_parser_ctor_initializer_opt_and_function_body (parser=0x4005f0c0) at ../../gcc/gcc/cp/parser.c:11091 #6 0x0814bc6d in cp_parser_function_definition_after_declarator (parser=0x4005f0c0, inline_p=false) at ../../gcc/gcc/cp/parser.c:13836 #7 0x0814bb98 in cp_parser_function_definition_from_specifiers_and_declarator (parser=0x4005f0c0, decl_specifiers=0x0, attributes=0x0, declarator=0x40029aa0) at ../../gcc/gcc/cp/parser.c:13782 ... >How-To-Repeat: ----------------------- ACE_Process_Descriptor::ACE_Process_Descriptor () : process_ (0) { } ----------------------- >Fix: >Release-Note: >Audit-Trail: >Unformatted: