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]

Re: [gfortran] patch for PR 15750: IOLENGTH form of the INQUIRE statement


On Sun, Jun 20, 2004 at 10:21:54AM -0700, Steve Kargl wrote:
> On Sun, Jun 20, 2004 at 06:21:33PM +0300, Janne Blomqvist wrote:
> > Hello,
> > 
> > the following patch implements support for the IOLENGTH form of the
> > INQUIRE statement.
> > 
> 
> Janne, do you have simple codes that can be added to the
> test suite?  I patched my local tree and started tested
> your patch, but my use of IOLENGTH is a fairly common
> if not trivial application.  In particular, have you tested
> this with some complicated derived data type?

Attached are three testcases. One tests that it works for dynamically
sized arrays, i.e. that the value of IOLENGTH is calculated at
runtime, the other one tests a derived type containing a compile-time
sized array. The third one tests an io list containing more than one
element.

Unfortunately, the second test fails, because the array in the derived
type is counted as a scalar. However, I suspect that this is a problem
with derived type io in general, as the IOLENGTH code uses the same
functions as READ and WRITE for transfering stuff to the runtime
library.

-- 
Janne Blomqvist

Attachment: iolength_1.f90
Description: Text document

Attachment: iolength_2.f90
Description: Text document

Attachment: iolength_3.f90
Description: Text document


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