From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 318 invoked by alias); 13 May 2002 11:06:08 -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 32740 invoked by uid 71); 13 May 2002 11:06:06 -0000 Resent-Date: 13 May 2002 11:06:06 -0000 Resent-Message-ID: <20020513110606.32739.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, aj@suse.de, rth@redhat.com Resent-Reply-To: gcc-gnats@gcc.gnu.org, pthomas@suse.de Received:(qmail 23040 invoked by uid 61); 13 May 2002 10:58:06 -0000 Message-Id:<20020513105806.23039.qmail@sources.redhat.com> Date: Mon, 13 May 2002 04:06:00 -0000 From: pthomas@suse.de Reply-To: pthomas@suse.de To: gcc-gnats@gcc.gnu.org Cc: aj@suse.de, rth@redhat.com X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify:aj@suse.de,rth@redhat.com Subject: c/6643: gcc fails in tree check for assignment to variable sized array X-SW-Source: 2002-05/txt/msg00344.txt.bz2 List-Id: >Number: 6643 >Category: c >Synopsis: gcc fails in tree check for assignment to variable sized array >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Mon May 13 04:06:05 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Philipp Thomas, SuSE Linux Ag >Release: 3.1 20020506 >Organization: >Environment: axp-suse-linux >Description: Given this test case: void foo (unsigned int len) { char str[len]; str[0] = '\0'; } gcc with checking enabled fails with: t.c: In function `foo': t.c:5: tree check: expected integer_cst, have plus_expr in tree_int_cst_sgn, at tree.c:3513 >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: