From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25424 invoked by alias); 5 Feb 2002 23:36: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 25384 invoked by uid 71); 5 Feb 2002 23:36:01 -0000 Resent-Date: 5 Feb 2002 23:36:01 -0000 Resent-Message-ID: <20020205233601.25383.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, Falk Hueffner Resent-Reply-To: gcc-gnats@gcc.gnu.org, 131399-quiet@bugs.debian.org Received:(qmail 20020 invoked from network); 5 Feb 2002 23:33:07 -0000 Received: from unknown (HELO einhorn.in-berlin.de) (192.109.42.8) by sources.redhat.com with SMTP; 5 Feb 2002 23:33:07 -0000 Received: from gate.local (mail@dialin-145-254-051-113.arcor-ip.net [145.254.51.113]) by einhorn.in-berlin.de (8.12.1/8.12.1/Debian -2) with ESMTP id g15NX2pX029785; Wed, 6 Feb 2002 00:33:02 +0100 Received: from doko by gate.local with local (Exim 3.34 #1 (Debian)) id 16YEvS-0003Ls-00; Wed, 06 Feb 2002 00:22:58 +0100 Message-Id: Date: Tue, 05 Feb 2002 15:36:00 -0000 From: Matthias Klose Reply-To: 131399-quiet@bugs.debian.org To: gcc-gnats@gcc.gnu.org, debian-gcc@lists.debian.org X-Send-Pr-Version:3.113 X-GNATS-Notify:Falk Hueffner Subject: c/5597: [regression from 2.95.3] Initialization of flexible char array member segfaults X-SW-Source: 2002-02/txt/msg00123.txt.bz2 List-Id: >Number: 5597 >Category: c >Synopsis: [regression from 2.95.3] Initialization of flexible char array member segfaults >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: ice-on-illegal-code >Submitter-Id: net >Arrival-Date: Tue Feb 05 15:36:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Falk Hueffner >Release: 3.0.4 CVS and HEAD CVS 20020203 >Organization: The Debian project >Environment: System: Debian GNU/Linux (testing/unstable) Architecture: i686, alpha host: i386-linux build: i386-linux target: i386-linux configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,objc --prefix=/usr --infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --disable-checking --enable-threads=posix --enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc i386-linux >Description: [ Reported to the Debian BTS as report #131399. Please CC 131399-quiet@bugs.debian.org on replies. Log of report can be found at http://bugs.debian.org/131399 ] Segfaults with 3.0.4 CVS and HEAD CVS 20020203, 2.95.x prints: $ gcc-2.95 -c bug-131399.c bug-131399.c:3: field `data' has incomplete type bug-131399.c: In function `foo': bug-131399.c:6: invalid initializer bug-131399.c:6: (near initialization for `s1.data') struct descr { int len; char data[]; }; int foo() { struct descr s1 = { 3, "FOO" }; } falk@borkum:~% /usr/bin/gcc-3.0 bug.c bug.c: In function `foo': bug.c:6: Internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: