public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/10612: ICE when calling a function with variable sized return type
@ 2003-05-08 11:06 Frank Heckenbach
  0 siblings, 0 replies; 3+ messages in thread
From: Frank Heckenbach @ 2003-05-08 11:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c/10612; it has been noted by GNATS.

From: Frank Heckenbach <frank@g-n-u.de>
To: ehrhardt@mathematik.uni-ulm.de, doko@debian.org, gcc-bugs@gcc.gnu.org,
        gcc-prs@gcc.gnu.org, hebisch@math.uni.wroc.pl, nobody@gcc.gnu.org,
        gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: c/10612: ICE when calling a function
	with variable sized return type
Date: Thu, 8 May 2003 01:37:48 +0200

 > Synopsis: ICE when calling a function with variable sized return type
 > 
 > State-Changed-From-To: open->closed
 > State-Changed-By: cae
 > State-Changed-When: Mon May  5 10:58:09 2003
 > State-Changed-Why:
 >     Duplicate of 8081.
 > 
 > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10612
 
 BTW, the synopsis in 8081 is quite unspecific (so it's hard to find
 that report when looking for it). Can it be changed?
 
 The variable sized return type seems to be the crucial thing; nested
 functions are not directly related (just necessary to evoke the
 problem because GCC won't allow variable sized types outside of
 functions).
 
 Frank
 
 -- 
 Frank Heckenbach, frank@g-n-u.de
 http://fjf.gnu.de/
 GnuPG and PGP keys: http://fjf.gnu.de/plan (7977168E)


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

* Re: c/10612: ICE when calling a function with variable sized return type
@ 2003-05-05 10:58 ehrhardt
  0 siblings, 0 replies; 3+ messages in thread
From: ehrhardt @ 2003-05-05 10:58 UTC (permalink / raw)
  To: doko, frank, gcc-bugs, gcc-prs, hebisch, nobody

Synopsis: ICE when calling a function with variable sized return type

State-Changed-From-To: open->closed
State-Changed-By: cae
State-Changed-When: Mon May  5 10:58:09 2003
State-Changed-Why:
    Duplicate of 8081.

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


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

* c/10612: ICE when calling a function with variable sized return type
@ 2003-05-03 17:46 Frank Heckenbach
  0 siblings, 0 replies; 3+ messages in thread
From: Frank Heckenbach @ 2003-05-03 17:46 UTC (permalink / raw)
  To: gcc-gnats; +Cc: hebisch, doko


>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 <frank@g-n-u.de>
>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 <URL:http://gcc.gnu.org/bugs.html> for instructions.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2003-05-08 11:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-08 11:06 c/10612: ICE when calling a function with variable sized return type Frank Heckenbach
  -- strict thread matches above, loose matches on Subject: below --
2003-05-05 10:58 ehrhardt
2003-05-03 17:46 Frank Heckenbach

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).