http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57048
Mikael Morin <mikael at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mikael at gcc dot gnu.org --- Comment #2 from Mikael Morin <mikael at gcc dot gnu.org> --- This fixes this case; However, it is not free of regressions. diff --git a/gcc/fortran/trans-types.c b/gcc/fortran/trans-types.c index adc34dd..24ceaea 100644 --- a/gcc/fortran/trans-types.c +++ b/gcc/fortran/trans-types.c @@ -2366,8 +2366,6 @@ gfc_get_derived_type (gfc_symbol * derived) else derived->backend_decl = pfunc_type_node; - derived->ts.kind = gfc_index_integer_kind; - derived->ts.type = BT_INTEGER; /* Set the f90_type to BT_VOID as a way to recognize something of type BT_INTEGER that needs to fit a void * for the purpose of the iso_c_binding derived types. */