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]

Questions about testsuite/gfortran.dg/fgetc_3.f90


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? In the later case, should not it give an
error when compiled with -std=f95?

Note that the code fails to execute with:

At line 7 of file fgetc_3.f90
Fortran runtime error: Cannot change STATUS parameter in OPEN statement

(2) Where are documented fput and fget?

(3) What are their behavior when there are several units opened?

TIA

Dominique

PS gfortran 4.2.0-20060617, OSX 10.3.9


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