First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 5679
Product:  
Component:  
Status: RESOLVED
Resolution: WONTFIX
Assigned To: Not yet assigned to anyone <unassigned@gcc.gnu.org>
Host:
Reported against  
Priority:  
Severity:  
Target Milestone:  
 
 
Target:
Reporter: Florian Weimer <fw@deneb.enyo.de>
Add CC:
CC:
Remove selected CCs
Build:
URL:
Summary:
Keywords:
Known to work:
Known to fail:

Attachment Description Type Created Size Actions
unconstrained_return.ada unconstrained_return.ada application/octet-stream 2003-05-21 15:15 314 bytes Edit
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 5679 depends on: Show dependency tree
Show dependency graph
Bug 5679 blocks:

Additional Comments:






View Bug Activity   |   Format For Printing   |   Clone This Bug


Description:   Last confirmed: 2003-07-19 17:51 Opened: 2002-02-12 23:56
When the call is expanded, there does not seem to be a target tree for the
returned object, although GCC cannot determine its size and thus needs one.

The problem disappears if the type conversion is removed, so the test case is
probably minimal.

This bugs is also triggered when compiling GtkAda 1.2.12.

Release:
GCC 3.1 CVS from 2002-02-12

Environment:
Debian GNU/Linux unstable, x86

How-To-Repeat:
Compile the attached code.

------- Comment #1 From Florian Weimer 2002-02-12 23:56 -------
Fix:
Unknown.  The bug might be caused by the incomplete merge from the ACT tree.

------- Comment #2 From Dara Hazeghi 2003-05-10 14:29 -------
From: Dara Hazeghi <dhazeghi@yahoo.com>
To: gcc-gnats@gcc.gnu.org, adi@drcomp.erfurt.thur.de, fw@deneb.enyo.de
Cc:  
Subject: Re: ada/5679: ICE in assign_stack_temp_for_type, returning unconstrained type conversion ("GtkAda bug")
Date: Sat, 10 May 2003 14:29:01 -0700

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit- 
 trail&database=gcc&pr=5679
 
 Hello,
 
 gcc 3.1 is quite old. Would it be possible for you to determine if this  
 problem still occurs on a more current version (ie 3.2.3)? Thanks,
 
 Dara
 


------- Comment #3 From Dara Hazeghi 2003-05-12 01:47 -------
From: Dara Hazeghi <dhazeghi@yahoo.com>
To: gcc-gnats@gcc.gnu.org, fw@deneb.enyo.de, adi@drcomp.erfurt.thur.de
Cc:  
Subject: Re: ada/5679: ICE in assign_stack_temp_for_type, returning unconstrained type conversion ("GtkAda bug")
Date: Mon, 12 May 2003 01:47:24 -0700

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit- 
 trail&database=gcc&pr=5679
 
 Hello,
 
 sorry for the earlier message. I can confirm that this bug still occurs  
 on gcc 3.2, 3.3 branch and mainline (20030510) on i686-linux. No  
 further confirmation is needed!
 
 Dara
 

------- Comment #4 From Giovanni Bajo 2003-05-12 11:17 -------
State-Changed-From-To: open->analyzed
State-Changed-Why: Confirmed in 3.3 and mainline

------- Comment #5 From Andrew Pinski 2003-06-02 00:02 -------
This is a dup of 9596.

*** This bug has been marked as a duplicate of 9596 ***

------- Comment #6 From Andrew Pinski 2003-06-02 03:00 -------
I closed this bug the wrong way.

------- Comment #7 From Andrew Pinski 2003-06-02 03:00 -------
*** Bug 9596 has been marked as a duplicate of this bug. ***

------- Comment #8 From Andrew Pinski 2003-06-02 03:01 -------
*** Bug 6452 has been marked as a duplicate of this bug. ***

------- Comment #9 From Dara Hazeghi 2003-06-20 01:49 -------
Geert, this appears to be a rather serious (and often encountered) bug. Do you
have any insight 
into what it's cause might be? Thanks,

Dara

------- Comment #10 From Dara Hazeghi 2003-07-06 02:16 -------
Confirmed still present with gcc 3.3 branch and mainline (20030620).

------- Comment #11 From Dara Hazeghi 2003-07-06 02:47 -------
*** Bug 8368 has been marked as a duplicate of this bug. ***

------- Comment #12 From Dara Hazeghi 2003-07-06 03:41 -------
*** Bug 9132 has been marked as a duplicate of this bug. ***

------- Comment #13 From Andrew Pinski 2003-07-16 11:07 -------
*** Bug 11541 has been marked as a duplicate of this bug. ***

------- Comment #14 From Andrew Pinski 2003-07-19 17:51 -------
It also happens on powerpc-apple-darwin6.6 on the mainline (20030719).

------- Comment #15 From Arnaud Charlet 2003-10-21 16:27 -------
The original (GtkAda) code was wrong, and has been fixed a while
ago.

It does not make sense for a function to return such a giant array.
There may still be a remaining "hole" in the gcc back-end, but this
is neither important, nor because of "an incomplete merge", so I am
closing this report.

Arno

------- Comment #16 From Florian Weimer 2003-10-21 16:50 -------
Subject: Re:  ICE in assign_stack_temp_for_type, returning unconstrained type
conversion ("GtkAda bug")

charlet at gcc dot gnu dot org wrote:

> The original (GtkAda) code was wrong, and has been fixed a while
> ago.
> 
> It does not make sense for a function to return such a giant array.

I was under the impression that the code uses a documented GNAT
extension.  I'm pretty sure that this the example is not valid Ada code.

------- Comment #17 From charlet@act-europe.fr 2003-10-21 17:07 -------
Subject: Re:  ICE in assign_stack_temp_for_type, returning unconstrained type
conversion ("GtkAda bug")

> I was under the impression that the code uses a documented GNAT
> extension.

No, that's not the case.

Arno

First Last Prev Next    No search results available      Search page      Enter new bug