From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16947 invoked by alias); 1 Feb 2002 09:46: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 16908 invoked by uid 71); 1 Feb 2002 09:46:01 -0000 Resent-Date: 1 Feb 2002 09:46:01 -0000 Resent-Message-ID: <20020201094601.16907.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, reichelt@igpm.rwth-aachen.de Received:(qmail 13218 invoked by uid 61); 1 Feb 2002 09:39:18 -0000 Message-Id:<20020201093918.13215.qmail@sources.redhat.com> Date: Fri, 01 Feb 2002 01:46:00 -0000 From: reichelt@igpm.rwth-aachen.de Reply-To: reichelt@igpm.rwth-aachen.de To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/5565: g++ crashes on struct that is defined twice X-SW-Source: 2002-02/txt/msg00001.txt.bz2 List-Id: >Number: 5565 >Category: c++ >Synopsis: g++ crashes on struct that is defined twice >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-illegal-code >Submitter-Id: net >Arrival-Date: Fri Feb 01 01:46:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Volker Reichelt >Release: gcc 3.1 20020128 (experimental) >Organization: >Environment: i686-pc-linux-gnu, mips-sgi-irix6.5 >Description: g++ crashes on the following code struct Base { virtual void f(); }; struct Wrong : public Base {}; struct Wrong : public Base {}; with the error message bug.cpp:3: redefinition of `struct Wrong' bug.cpp:2: previous definition of `struct Wrong' bug.cpp:3: Internal compiler error in build_primary_vtable, at cp/class.c:638 Please submit a full bug report, [etc.] Just compile the code with "g++ -c". The same code caused different problems with gcc 2.96, see PR 1519. >How-To-Repeat: g++ -c filename.cpp >Fix: >Release-Note: >Audit-Trail: >Unformatted: