This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c/8081: ICE using GNU C nested functions.

>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
>Originator:     Naveen Sharma
>Release:        3.3  3.3 20020919 (experimental)
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
When the following program is compiled, the compiler

main (int argc, char **argv)
  int size = 10;
  int i;
  typedef struct
    char val[size];
  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 <URL:> for instructions.
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.
Still Investigating. The problem seem to occur only while allocating structure of variable size in the nested function.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]