This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Questions about testsuite/gfortran.dg/fgetc_3.f90
- From: dominiq at lps dot ens dot fr (Dominique Dhumieres)
- To: fortran at gcc dot gnu dot org
- Date: Tue, 27 Jun 2006 15:22:15 +0200 (CEST)
- Subject: 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