The attached (invalid) code gives the following error message: parabrisas% gfortran -c -g core.f90 core.f90:12: internal compiler error: in gfc_get_derived_type, at fortran/trans-types.c:1399 Please submit a full bug report, with preprocessed source if appropriate. (The code is invalid since MAX_BUFF_SIZE is undeclared.) This is using gcc cvs from yesterday: parabrisas% gfortran --version GNU Fortran 95 (GCC 4.0.0 20041213 (experimental)) Copyright (C) 2004 Free Software Foundation, Inc. parabrisas% cat core.f90 module core type, public :: buffer_t private character(len=MAX_BUFF_SIZE) :: str end type buffer_t private CONTAINS function buffer_to_str(buffer) result(a) type(buffer_t), intent(in) :: buffer integer :: a a = 1 end function buffer_to_str end module core
-- Summary: ICE in gfc_get_derived_type, at fortran/trans-types.c Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: tow21 at cam dot ac dot uk CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18990