public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/17744] New: gfortran: gfc_todo: IO of arrays in derived types
@ 2004-09-30  7:24 anlauf at hep dot tu-darmstadt dot de
  2004-09-30 13:11 ` [Bug fortran/17744] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: anlauf at hep dot tu-darmstadt dot de @ 2004-09-30  7:24 UTC (permalink / raw)
  To: gcc-bugs

Hi,

IO of arrays in derived types is not yet implemented.

program gfcbug13
  implicit none
  type twoint
     integer :: i(2)
  end type twoint
  type (twoint), parameter :: l = twoint ( (/ 1, 2 /) )
  print *, l
end program gfcbug13

fails to compile with error:

gfcbug13.f90: In function `MAIN__':
gfcbug13.f90:7: fatal error: gfc_todo: Not Implemented: IO of arrays in derived
types
compilation terminated.

Cheers,
-ha

-- 
           Summary: gfortran: gfc_todo: IO of arrays in derived types
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: anlauf at hep dot tu-darmstadt dot de
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-cygwin


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


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

* [Bug fortran/17744] gfortran: gfc_todo: IO of arrays in derived types
  2004-09-30  7:24 [Bug fortran/17744] New: gfortran: gfc_todo: IO of arrays in derived types anlauf at hep dot tu-darmstadt dot de
@ 2004-09-30 13:11 ` pinskia at gcc dot gnu dot org
  2004-09-30 13:13 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-30 13:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-30 13:11 -------
Well the TODO has been fixed already but we get a different error now:
pr17744.f90:7: internal compiler error: in expand_assignment, at expr.c:3461
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

while trying to expand:
twoint.0.i[S.7] = D.444;

Confirmed. I think this is either a middle-end issue or a front-end bug.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2004-09-30 13:11:41
               date|                            |


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


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

* [Bug fortran/17744] gfortran: gfc_todo: IO of arrays in derived types
  2004-09-30  7:24 [Bug fortran/17744] New: gfortran: gfc_todo: IO of arrays in derived types anlauf at hep dot tu-darmstadt dot de
  2004-09-30 13:11 ` [Bug fortran/17744] " pinskia at gcc dot gnu dot org
@ 2004-09-30 13:13 ` pinskia at gcc dot gnu dot org
  2004-10-07 15:47 ` [Bug fortran/17744] ice in assignment of derived type constructor tobi at gcc dot gnu dot org
  2004-10-26 21:35 ` reichelt at gcc dot gnu dot org
  3 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-30 13:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-30 13:13 -------
I should note that I get that ICE only at -O0, not at -O1 or above.

-- 


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


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

* [Bug fortran/17744] ice in assignment of derived type constructor
  2004-09-30  7:24 [Bug fortran/17744] New: gfortran: gfc_todo: IO of arrays in derived types anlauf at hep dot tu-darmstadt dot de
  2004-09-30 13:11 ` [Bug fortran/17744] " pinskia at gcc dot gnu dot org
  2004-09-30 13:13 ` pinskia at gcc dot gnu dot org
@ 2004-10-07 15:47 ` tobi at gcc dot gnu dot org
  2004-10-26 21:35 ` reichelt at gcc dot gnu dot org
  3 siblings, 0 replies; 7+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-10-07 15:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2004-10-07 15:47 -------
Fixed summary.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|gfortran: gfc_todo: IO of   |ice in assignment of derived
                   |arrays in derived types     |type constructor


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


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

* [Bug fortran/17744] ice in assignment of derived type constructor
  2004-09-30  7:24 [Bug fortran/17744] New: gfortran: gfc_todo: IO of arrays in derived types anlauf at hep dot tu-darmstadt dot de
                   ` (2 preceding siblings ...)
  2004-10-07 15:47 ` [Bug fortran/17744] ice in assignment of derived type constructor tobi at gcc dot gnu dot org
@ 2004-10-26 21:35 ` reichelt at gcc dot gnu dot org
  3 siblings, 0 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-10-26 21:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-10-26 21:35 -------
The bug also goes away if one omits the keyword "parameter".


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
   GCC host triplet|i686-pc-cygwin              |
           Keywords|                            |monitored


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


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

* [Bug fortran/17744] ice in assignment of derived type constructor
       [not found] <bug-17744-6318@http.gcc.gnu.org/bugzilla/>
  2005-10-20  7:00 ` reichelt at gcc dot gnu dot org
@ 2005-10-21  4:19 ` paulthomas2 at wanadoo dot fr
  1 sibling, 0 replies; 7+ messages in thread
From: paulthomas2 at wanadoo dot fr @ 2005-10-21  4:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from paulthomas2 at wanadoo dot fr  2005-10-21 04:19 -------
Subject: Re:  ice in assignment of derived type constructor


>Paul, do you want to add this as a testcase?
>  
>
I was in two minds about it.  Checking that a structure exists before 
dereferencing it is not going to break itself, is it.  On the other 
hand, it adds to the checks of things that gfortran must do.

What swings it is the opportunity to have one last go at cvs!

Best regards

Paul


-- 


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


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

* [Bug fortran/17744] ice in assignment of derived type constructor
       [not found] <bug-17744-6318@http.gcc.gnu.org/bugzilla/>
@ 2005-10-20  7:00 ` reichelt at gcc dot gnu dot org
  2005-10-21  4:19 ` paulthomas2 at wanadoo dot fr
  1 sibling, 0 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-10-20  7:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from reichelt at gcc dot gnu dot org  2005-10-20 07:00 -------
This was fixed on mainline and the 4.0 branch by the patch for PR 24440:
http://gcc.gnu.org/ml/gcc-cvs/2005-10/msg00736.html

Paul, do you want to add this as a testcase?


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pault at gcc dot gnu dot org
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.3


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


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

end of thread, other threads:[~2005-10-21  4:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-30  7:24 [Bug fortran/17744] New: gfortran: gfc_todo: IO of arrays in derived types anlauf at hep dot tu-darmstadt dot de
2004-09-30 13:11 ` [Bug fortran/17744] " pinskia at gcc dot gnu dot org
2004-09-30 13:13 ` pinskia at gcc dot gnu dot org
2004-10-07 15:47 ` [Bug fortran/17744] ice in assignment of derived type constructor tobi at gcc dot gnu dot org
2004-10-26 21:35 ` reichelt at gcc dot gnu dot org
     [not found] <bug-17744-6318@http.gcc.gnu.org/bugzilla/>
2005-10-20  7:00 ` reichelt at gcc dot gnu dot org
2005-10-21  4:19 ` paulthomas2 at wanadoo dot fr

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