From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15021 invoked by alias); 3 May 2003 17:46: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 14979 invoked by uid 71); 3 May 2003 17:46:00 -0000 Resent-Date: 3 May 2003 17:46:00 -0000 Resent-Message-ID: <20030503174600.14978.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, hebisch@math.uni.wroc.pl, doko@debian.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, Frank Heckenbach Received: (qmail 14133 invoked by uid 48); 3 May 2003 17:45:43 -0000 Message-Id: <20030503174543.14132.qmail@sources.redhat.com> Date: Sat, 03 May 2003 17:46:00 -0000 From: Frank Heckenbach Reply-To: Frank Heckenbach To: gcc-gnats@gcc.gnu.org Cc: hebisch@math.uni.wroc.pl, doko@debian.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify: hebisch@math.uni.wroc.pl, doko@debian.org Subject: c/10612: ICE when calling a function with variable sized return type X-SW-Source: 2003-05/txt/msg00208.txt.bz2 List-Id: >Number: 10612 >Category: c >Synopsis: ICE when calling a function with variable sized return type >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Sat May 03 17:46:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Frank Heckenbach >Release: 3.2.3/3.3 CVS 20030502/HEAD 20030501 >Organization: >Environment: i386-linux >Description: Calling a function with variable sized return type causes an internal compiler error. int main () { int n = 1; typedef struct { int t[n]; } s; static s f () { s r; r.t[0] = 0; return r; } f (); /* GCC crashes here */ return 0; } $ gcc-3.3 -Wall x.c x.c: In function `main': x.c:13: internal compiler error: in assign_stack_temp_for_type, at function.c:649 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: