This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gfortran,patch] PR 24266: IO to/from arrays that are components of derived types


Here's a simple patch to fix PR 24266: the current check in
trans-io.c (set_internal_unit) if the internal file is an array
works only for "plain" variables, not derived type components.

Tested on Linux/x86, mainline and 4.1. Ok to commit?


        Erik


2005-01-31  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/24266
        * trans-io.c (set_internal_unit): Check the rank of the
          expression node itself instead of its symbol.


2005-01-31  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/24266
        * gfortran.dg/arrayio_derived_2.f90: New.

Attachment: 24266.diff
Description: Text document

Attachment: arrayio_derived_2.f90
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]