In cygwin platform, I got following internal compiler error.

$ gfortran --version
GNU Fortran 95 (GCC 4.1.0 20050522 (experimental))
Copyright (C) 2005 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING

$ cat ice.f90
module m
  type t1
    type(t2), pointer :: p
  end type

  type t2
    type(t1) :: a
  end type

  type t3
    type(t1) :: p
  end type

contains

  logical function f(a)
    type(t3), intent(in) :: a
    f=.true.
  end function

end module

$ gfortran ice.f90
ice.f90:16: internal compiler error: in gfc_get_derived_type, at
fortran/trans-t
ypes.c:1458
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: Internal compiler error on compiling nested derived type
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: iguchi at coral dot t dot u-tokyo dot ac dot jp


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

Reply via email to