public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/25391]  New: Module derived type issue
@ 2005-12-13 13:40 jakub at gcc dot gnu dot org
  2005-12-15 16:21 ` [Bug fortran/25391] " paul dot richard dot thomas at cea dot fr
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2005-12-13 13:40 UTC (permalink / raw)
  To: gcc-bugs

module mod1
  type t1
    real :: f1
  end type t1
  type t2
    type(t1), pointer :: f2(:)
    real, pointer :: f3(:,:)
  end type t2
end module mod1

module mod2
  use mod1
  type(t1), pointer, save :: v(:)
contains
  subroutine foo (x)
    use mod1
    implicit none
    type(t2) :: x
    integer :: d
    d = size (x%f3, 2)
    v = x%f2(:)
  end subroutine foo
end module mod2

ICEs in fold_convert, because gfortran created two distinct t1 types,
one for the v variable and a different one for x.

I'd say either gfortran should cache somewhere module derived type tree nodes
and reuse them, or it needs a non-default type comparison hook that would
figure which derived types are in fact compatible.


-- 
           Summary: Module derived type issue
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <bug-25391-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2015-10-10  9:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-13 13:40 [Bug fortran/25391] New: Module derived type issue jakub at gcc dot gnu dot org
2005-12-15 16:21 ` [Bug fortran/25391] " paul dot richard dot thomas at cea dot fr
2005-12-15 16:47 ` jakub at gcc dot gnu dot org
2005-12-22  7:05 ` pault at gcc dot gnu dot org
2005-12-26  9:08 ` pault at gcc dot gnu dot org
2005-12-26 12:18 ` pault at gcc dot gnu dot org
2005-12-29  6:18 ` pault at gcc dot gnu dot org
2006-01-01  5:32 ` pinskia at gcc dot gnu dot org
     [not found] <bug-25391-4@http.gcc.gnu.org/bugzilla/>
2015-10-10  9:11 ` dominiq at lps dot ens.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).