http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60529
Bug ID: 60529
Summary: internal compiler error with allocatable sub-component
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: carlos.a.cruz at nasa dot gov
Using the following compiler release:
GNU Fortran (GCC) 4.9.0 20140309 (experimental)
on the following reproducer:
---
module T_mod
implicit none
type :: TS
integer, allocatable :: i(:)
end type TS
type :: T
! The following line causes an internal compiler error.
type (TS) :: s(1)
! The following line does not:
! type (TS), allocatable :: s(:)
end type T
contains
subroutine insert(this)
class(T) :: this
end subroutine insert
end module T_mod
---
yields an internal compiler error:
repro.F90: In function â__final_t_mod_Tâ:
repro.F90:19:0: internal compiler error: in gfc_conv_descriptor_data_get, at
fortran/trans-array.c:145
end module T_mod
^
0x511048 ???
../sysdeps/x86_64/elf/start.S:113
I am running on a Linux cluster:
Linux discover28 2.6.32.54-0.3-default #1 SMP 2012-01-27 17:38:56 +0100 x86_64
x86_64 x86_64 GNU/Linux
Note that the internal compiler error does not occur with two earlier releases
of gfortran:
GNU Fortran (GCC) 4.9.0 20140105 (experimental)
GNU Fortran (GCC) 4.8.1