From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24162 invoked by alias); 31 Jan 2002 00:36: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 24137 invoked by uid 71); 31 Jan 2002 00:36:01 -0000 Resent-Date: 31 Jan 2002 00:36:01 -0000 Resent-Message-ID: <20020131003601.24136.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org 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 23531 invoked from network); 31 Jan 2002 00:30:21 -0000 Received: from unknown (HELO karma.fnal.gov) (131.225.227.37) by sources.redhat.com with SMTP; 31 Jan 2002 00:30:21 -0000 Received: (from sss@localhost) by karma.fnal.gov (8.11.6/8.11.6) id g0V0T1x16112; Wed, 30 Jan 2002 18:29:01 -0600 Message-Id:<200201310029.g0V0T1x16112@karma.fnal.gov> Date: Wed, 30 Jan 2002 16:36: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++/5548: g++ 3.1 ICE on invalid input X-SW-Source: 2002-01/txt/msg01064.txt.bz2 List-Id: >Number: 5548 >Category: c++ >Synopsis: g++ 3.1 ICE on invalid input >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-illegal-code >Submitter-Id: net >Arrival-Date: Wed Jan 30 16:36:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: scott snyder >Release: 3.1 20020129 (experimental) >Organization: >Environment: System: Linux karma 2.4.9-13 #1 Tue Oct 30 20:11:04 EST 2001 i686 unknown Architecture: i686 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: ../egcs/configure --prefix=/usr/local/egcs --enable-threads=posix --enable-long-long >Description: g++ dies with a segv compiling the source below (which is invalid C++): $ g++ -c x.cc x.cc:3: parse error before `x' x.cc:3: missing ';' before right brace x.cc:4: ISO C++ forbids defining types within return type x.cc:4: semicolon missing after declaration of `struct Item' x.cc: In function `int Item()': x.cc:4: only constructors take base initializers x.cc:4: internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. >How-To-Repeat: Compile this source: ------------------------------------------------------------------- struct Item { int what; Item(string x) {} Item() : what(0) {} }; ------------------------------------------------------------------- >Fix: >Release-Note: >Audit-Trail: >Unformatted: