From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9337 invoked by alias); 15 Mar 2003 02: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 9278 invoked by uid 71); 15 Mar 2003 02:36:00 -0000 Resent-Date: 15 Mar 2003 02:36:00 -0000 Resent-Message-ID: <20030315023600.9277.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, mmabreu@inf.ufrgs.br Received: (qmail 25718 invoked by uid 48); 15 Mar 2003 02:28:02 -0000 Message-Id: <20030315022802.25717.qmail@sources.redhat.com> Date: Sat, 15 Mar 2003 02:36:00 -0000 From: mmabreu@inf.ufrgs.br Reply-To: mmabreu@inf.ufrgs.br To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c/10089: ICE on initialization of variable-length array X-SW-Source: 2003-03/txt/msg00928.txt.bz2 List-Id: >Number: 10089 >Category: c >Synopsis: ICE on initialization of variable-length array >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: ice-on-illegal-code >Submitter-Id: net >Arrival-Date: Sat Mar 15 02:36:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Marcelo Abreu >Release: gcc version 3.2.2 >Organization: >Environment: Linux 2.4.19 i686 >Description: ICE occurs when trying to initialize a certain multidimensional array. This array has the length of leftmost dimension not specified and the length of another dimension specified by a variable. GCC 3.2.2 outputs the following: bug.c: In function `main': bug.c:3: Internal compiler error in size_binop, at fold-const.c:2016 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. >How-To-Repeat: Try to compile the program below with: gcc bug.c -o bug int main (int argc, char* argv[]) { char values[][argc] = { "" }; return 0; } >Fix: >Release-Note: >Audit-Trail: >Unformatted: