From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13553 invoked by alias); 28 Sep 2002 17:26: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 13533 invoked by uid 71); 28 Sep 2002 17:26:00 -0000 Resent-Date: 28 Sep 2002 17:26:00 -0000 Resent-Message-ID: <20020928172600.13532.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, sharmanaveen@yahoo.com Resent-Reply-To: gcc-gnats@gcc.gnu.org, naveens@noida.hcltech.com Received: (qmail 12257 invoked by uid 61); 28 Sep 2002 17:18:12 -0000 Message-Id: <20020928171812.12256.qmail@sources.redhat.com> Date: Sat, 28 Sep 2002 10:26:00 -0000 From: naveens@noida.hcltech.com Reply-To: naveens@noida.hcltech.com To: gcc-gnats@gcc.gnu.org Cc: sharmanaveen@yahoo.com X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify: sharmanaveen@yahoo.com Subject: c/8081: ICE using GNU C nested functions. X-SW-Source: 2002-09/txt/msg00799.txt.bz2 List-Id: >Number: 8081 >Category: c >Synopsis: ICE using GNU C nested functions. >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sat Sep 28 10:26:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Naveen Sharma >Release: 3.3 3.3 20020919 (experimental) >Organization: >Environment: System: Linux eagle 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002 i686 unknown Architecture: i686 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: sh-unknown-elf configured with: ../gcc/configure --target=sh-elf --prefix=/home/naveens/debug --with-ld=/home/gnu/local/bin/sh-elf-ld --with-as=/home/gnu/local/bin/sh-elf-as --with-newlib --with-libs=/home/naveens/newlib/sh-elf/lib --with-headers=/home/naveens/newlib/sh-elf/include --enable-languages=c,c++ --enable-checking=rtl >Description: When the following program is compiled, the compiler aborts. int main (int argc, char **argv) { int size = 10; int i; typedef struct { char val[size]; } block; block retframe_block () { return *(block *) 0; } retframe_block (); return 0; } The message is ------------------------------------------------------- BUG.c: In function `main': BUG.c:15: internal compiler error: in assign_stack_temp_for_type, at function.c:646 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. -------------------------------------------------------- >How-To-Repeat: The problem occurs with i686 native, and problem is present in earlier versions too (2.95, 2.96 (Redhat)). Please repeat with the test case attached. My guess is, it will occur with any gcc build. >Fix: Still Investigating. The problem seem to occur only while allocating structure of variable size in the nested function. >Release-Note: >Audit-Trail: >Unformatted: