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: Questions about testsuite/gfortran.dg/fgetc_3.f90


On Tue, Jun 27, 2006 at 03:22:15PM +0200, Dominique Dhumieres wrote:
> 
> I have a few questions about testsuite/gfortran.dg/fgetc_3.f90:
> 
> (1) How
> 
> ...
>   open(status="scratch")
>   write(*,"(A)") "abcde"
>   rewind(10)
> ...
> 
> is compatible with the requirement:
> 
> > C904 (R905) A file-unit-number shall be specified; if the optional
> > characters UNIT= are omitted, the file-unit-number shall be the first item
> > in the connect-spec-list.
> 
> Is this a bug or an extension?

I'd have go rummage through the code, but it looks like a
bug to me.

> In the later case, should not it give an
> error when compiled with -std=f95?

Yes, of course.

> 
> (2) Where are documented fput and fget?

Look in the g77 manual.  Bonus points will be awarded to
the first person who transfer that information to the 
gfortran manual.

-- 
Steve


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