This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Questions about testsuite/gfortran.dg/fgetc_3.f90
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Dominique Dhumieres <dominiq at lps dot ens dot fr>
- Cc: fortran at gcc dot gnu dot org
- Date: Tue, 27 Jun 2006 07:48:44 -0700
- Subject: Re: Questions about testsuite/gfortran.dg/fgetc_3.f90
- References: <20060627132215.E73B75BB8D@mailhost.lps.ens.fr>
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