http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53796

--- Comment #12 from Clive Page <clivegpage at gmail dot com> 2012-06-30 
08:40:34 UTC ---
Jerry

> Try this variation:
>
> integer(kind=8) :: s, r
> open(unit=1, file='testsize.f90', status='old', recl=500)
> inquire(unit=1, size=s, recl=r)
> print *, 'size=', s, ' recl=', r
> end

Yes, that works as expected, giving r=500.   The case that doesn't work 
as expected is when you don't use RECL in the OPEN statement, and use 
inquire to find the default size limit.

I assume you are right that -1 represents the maximum unsigned integer - 
just a pity that Fortran interprets it as -1 not the largest +ve value.

Regards

Reply via email to