Hi, the following code crashes gfortran:
program gfcbug21 implicit none type t integer :: i end type t type (t), parameter :: u = t (1) integer, parameter :: idx_list(1) = (/ 1 /) ! gfortran dies here: integer :: j(1) = transfer (u, idx_list) print *, j end program gfcbug21 I get: gfcbug21.f90: In function 'MAIN__': gfcbug21.f90:10: internal compiler error: in gfc_conv_array_initializer, at fortran/trans-array.c:2946 (For the record: this works with Intel's ifc 7.1 but crashes ifort 8.1) Cheers, -ha -- Summary: gfortran: ICE in gfc_conv_array_initializer with array initialization 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-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18769