From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8152 invoked by alias); 1 Feb 2002 15:46: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 8115 invoked by uid 71); 1 Feb 2002 15:46:01 -0000 Resent-Date: 1 Feb 2002 15:46:01 -0000 Resent-Message-ID: <20020201154601.8114.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 6759 invoked by uid 61); 1 Feb 2002 15:41:41 -0000 Message-Id:<20020201154141.6758.qmail@sources.redhat.com> Date: Fri, 01 Feb 2002 07: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++/5571: crash in initialization of a static variable X-SW-Source: 2002-02/txt/msg00016.txt.bz2 List-Id: >Number: 5571 >Category: c++ >Synopsis: crash in initialization of a static variable >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Fri Feb 01 07:46:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Volker Reichelt >Release: gcc version 3.1 20020128 (experimental) >Organization: >Environment: mips-sgi-irix6.5 >Description: The following line of code produce an ICE when compiled with optimization: template struct A {}; struct B { static A a; void f() { a; } }; A B::a = A(); The error message is: bug.cpp: In function `void __static_initialization_and_destruction_0(int, int)': bug.cpp:9: Internal compiler error in simplify_gen_subreg, at simplify-rtx.c:2687 Please submit a full bug report, [...] Remarks: * The example used to crash without optimization producing a different error message (see PR 4909). * It does not crash on i686-pc-linux-gnu. >How-To-Repeat: g++ -O -c bug.cpp >Fix: >Release-Note: >Audit-Trail: >Unformatted: