public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/17921] New: ICE on legal code: using the address of an array component
@ 2004-10-10 12:37 duncan dot sands at free dot fr
  2004-10-10 14:26 ` [Bug ada/17921] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: duncan dot sands at free dot fr @ 2004-10-10 12:37 UTC (permalink / raw)
  To: gcc-bugs

$ gcc -c b.ads 
b.ads: In function 'B._Elabs': 
b.ads:1: error: Invalid operand to unary operator 
D.399 
 
+===========================GNAT BUG DETECTED==============================+ 
| 4.0.0 20041005 (experimental) (i686-pc-linux-gnu) verify_stmts failed.   | 
| No source file position information available                            | 
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.            | 
| Include the entire contents of this bug box in the report.               | 
| Include the exact gcc or gnatmake command that you entered.              | 
| Also include sources listed below in gnatchop format                     | 
| (concatenated together with no headers between files).                   | 
+==========================================================================+ 
 
Please include these source files with error report 
Note that list may not be accurate in some cases, 
so please double check that the problem can still 
be reproduced with the set of files listed. 
 
b.ads 
 
compilation abandoned 
 
---chop here--- 
package B is 
   An_Array : array (Boolean) of Character; 
   An_Object : Character; 
   for An_Object'Address use An_Array (True)'Address; 
   pragma Import (Ada, An_Object); 
end B;

-- 
           Summary: ICE on legal code: using the address of an array
                    component
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: duncan dot sands at free dot fr
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17921


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

* [Bug ada/17921] ICE on legal code: using the address of an array component
  2004-10-10 12:37 [Bug ada/17921] New: ICE on legal code: using the address of an array component duncan dot sands at free dot fr
@ 2004-10-10 14:26 ` pinskia at gcc dot gnu dot org
  2005-01-02 14:26 ` baldrick at free dot fr
  2005-01-02 15:55 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-10 14:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-10 14:26 -------
  D.351 = (system__address *) &(SIGNED_32) D.359;

Confirmed, looks like a front-end problem, it should have made a temprary variable to hold the value 
and then taken the address.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2004-10-10 14:26:50
               date|                            |
            Version|tree-ssa                    |4.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17921


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

* [Bug ada/17921] ICE on legal code: using the address of an array component
  2004-10-10 12:37 [Bug ada/17921] New: ICE on legal code: using the address of an array component duncan dot sands at free dot fr
  2004-10-10 14:26 ` [Bug ada/17921] " pinskia at gcc dot gnu dot org
@ 2005-01-02 14:26 ` baldrick at free dot fr
  2005-01-02 15:55 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: baldrick at free dot fr @ 2005-01-02 14:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From baldrick at free dot fr  2005-01-02 14:26 -------
(In reply to comment #1) 
>   D.351 = (system__address *) &(SIGNED_32) D.359; 
>  
> Confirmed, looks like a front-end problem, it should have made a temprary 
variable to hold the value  
> and then taken the address. 
 
The ICE no longer occurs with current CVS. 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17921


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

* [Bug ada/17921] ICE on legal code: using the address of an array component
  2004-10-10 12:37 [Bug ada/17921] New: ICE on legal code: using the address of an array component duncan dot sands at free dot fr
  2004-10-10 14:26 ` [Bug ada/17921] " pinskia at gcc dot gnu dot org
  2005-01-02 14:26 ` baldrick at free dot fr
@ 2005-01-02 15:55 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-02 15:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-02 15:55 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17921


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

end of thread, other threads:[~2005-01-02 15:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-10 12:37 [Bug ada/17921] New: ICE on legal code: using the address of an array component duncan dot sands at free dot fr
2004-10-10 14:26 ` [Bug ada/17921] " pinskia at gcc dot gnu dot org
2005-01-02 14:26 ` baldrick at free dot fr
2005-01-02 15:55 ` pinskia at gcc dot gnu dot org

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