public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/8081: ICE using GNU C nested functions.
@ 2002-11-24 13:56 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2002-11-24 13:56 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, naveens, nobody, sharmanaveen

Synopsis: ICE using GNU C nested functions.

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Mon Nov 18 15:09:11 2002
State-Changed-Why:
    Confirmed. ICEs with 2.95, 3.0, 3.2 and 3.3

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8081


^ permalink raw reply	[flat|nested] 2+ messages in thread

* c/8081: ICE using GNU C nested functions.
@ 2002-09-28 10:26 naveens
  0 siblings, 0 replies; 2+ messages in thread
From: naveens @ 2002-09-28 10:26 UTC (permalink / raw)
  To: gcc-gnats; +Cc: sharmanaveen


>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 <URL:http://www.gnu.org/software/gcc/bugs.html> 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:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-18 23:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-24 13:56 c/8081: ICE using GNU C nested functions bangerth
  -- strict thread matches above, loose matches on Subject: below --
2002-09-28 10:26 naveens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).