From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29205 invoked by alias); 10 Apr 2002 10:06:06 -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 29173 invoked by uid 71); 10 Apr 2002 10:06:03 -0000 Resent-Date: 10 Apr 2002 10:06:03 -0000 Resent-Message-ID: <20020410100603.29172.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, etienne.lorrain@masroudeau.com Received:(qmail 28658 invoked by uid 61); 10 Apr 2002 10:02:07 -0000 Message-Id:<20020410100207.28657.qmail@sources.redhat.com> Date: Wed, 10 Apr 2002 03:06:00 -0000 From: etienne.lorrain@masroudeau.com Reply-To: etienne.lorrain@masroudeau.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c/6245: GCC-3.0.4 infinite loop on invalid code X-SW-Source: 2002-04/txt/msg00576.txt.bz2 List-Id: >Number: 6245 >Category: c >Synopsis: GCC-3.0.4 infinite loop on invalid code >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Apr 10 03:06:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Etienne Lorrain >Release: GCC-3.0.4 >Organization: >Environment: Linux >Description: Continually display, until ^C: bug.c:19: initializer element is not constant bug.c:19: (near initialization for `STATE') >How-To-Repeat: [etienne@nextstar gujin]$ /home/etienne/projet/toolchain/bin/gcc -v Reading specs from /home/etienne/projet/toolchain/lib/gcc-lib/i686-pc-linux-gnu/3.0.4/specs Configured with: ../configure --prefix=/home/etienne/projet/toolchain --enable-languages=C Thread model: single gcc version 3.0.4 [etienne@nextstar gujin]$ cat bug.c extern unsigned _srodata[], _edata[]; extern const struct state_str { unsigned dummy_but_needed_for_bug; struct short_bound_str { signed short low_limit; signed short high_limit; } __attribute__ ((packed)) stack_limit; struct long_bound_str { signed low_limit; signed high_limit; } __attribute__ ((packed)) data_limit; const char *BoundMsg; } STATE; const struct state_str STATE = { data_limit: { low_limit: (unsigned)_srodata , high_limit: 0xFFFF }, stack_limit: { low_limit: (short)_edata, high_limit: 0xFFFC }, }; [etienne@nextstar gujin]$ /home/etienne/projet/toolchain/bin/gcc bug.c .... (cannot catch beginning) ... bug.c:19: (near initialization for `STATE') bug.c:19: initializer element is not constant bug.c:19: (near initialization for `STATE') bug.c:19: initializer element is not constant bug.c:19: (near initialization for `STATE') bug.c:19: initializer element is not constant bug.c:19: (near initialization for `STATE') bug.c:19: initializer element is not constant bug.c:19: (near initialization for `STATE') bug.c:19: initializer element is not constant .... >Fix: >Release-Note: >Audit-Trail: >Unformatted: