From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24144 invoked by alias); 2 Aug 2002 16:56:00 -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 24124 invoked by uid 71); 2 Aug 2002 16:56:00 -0000 Resent-Date: 2 Aug 2002 16:56:00 -0000 Resent-Message-ID: <20020802165600.24123.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, marco.walther@sun.com Received: (qmail 15356 invoked from network); 2 Aug 2002 16:46:56 -0000 Received: from unknown (HELO nwkea-mail-1.sun.com) (192.18.42.13) by sources.redhat.com with SMTP; 2 Aug 2002 16:46:56 -0000 Received: from engmail2.Eng.Sun.COM ([129.146.1.25]) by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id JAA18984 for ; Fri, 2 Aug 2002 09:46:56 -0700 (PDT) Received: from jena.eng.sun.com (jena.Eng.Sun.COM [129.146.78.158]) by engmail2.Eng.Sun.COM (8.9.3+Sun/8.9.3/ENSMAIL,v2.1p1) with ESMTP id JAA28689; Fri, 2 Aug 2002 09:46:55 -0700 (PDT) Received: (from marcow@localhost) by jena.eng.sun.com (8.10.2+Sun/8.10.2) id g72GktY07071; Fri, 2 Aug 2002 09:46:55 -0700 (PDT) Message-Id: <200208021646.g72GktY07071@jena.eng.sun.com> Date: Fri, 02 Aug 2002 09:56:00 -0000 From: marco.walther@sun.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: 3.113 Subject: c++/7473: gcc-3.1.1: Internal compiler error in find_function_data X-SW-Source: 2002-08/txt/msg00035.txt.bz2 List-Id: >Number: 7473 >Category: c++ >Synopsis: Internal compiler error in find_function_data >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Fri Aug 02 09:56:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Marco Walther >Release: 3.1.1 >Organization: Sun Microsystems, Inc. >Environment: System: SunOS janus4 5.7 Generic_106541-20 sun4u sparc SUNW,Ultra-250 Architecture: sun4 host: sparc-sun-solaris2.7 build: sparc-sun-solaris2.7 target: sparc-sun-solaris2.7 configured with: ../gcc-3.1.1/configure --prefix=/set/gnu/local --enable-shared --with-gnu-as >Description: The following little test case results in an internal error. --------------------------------------------------------------------------- struct C { int i; static struct C **c; }; extern int sig_max(); C ** C::c = new C *[sig_max() + 1]; void foo() { C::c[2]->i = 6; } --------------------------------------------------------------------------- marcow@janus4:/set/gnu/src/gcc-3.1.1/sparc-S7/gcc>./xgcc -B./ /tmp/gcc.C -c -o /tmp/gcc.o /tmp/gcc.C: In function `void __static_initialization_and_destruction_0(int, int)': /tmp/gcc.C:10: Internal compiler error in find_function_data, at function.c:329 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. --------------------------------------------------------------------------- We found this problem with gcc-3.1 and it happens on all system we tested (Solaris SPARC/Intel & Linux). It's still there in 3.1.1 >How-To-Repeat: Just try to compile the above test case. >Fix: Workaround: create another static int variable to hold the result of sig_max() and use that for the array dimension. >Release-Note: >Audit-Trail: >Unformatted: