[Bug libfortran/18297] gfortran : file opening fails if only read access

2004-11-24 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-24 
18:18 ---
Just closing as a dup of bug 18653 (there was some talk about this on the 
mailing list).

*** This bug has been marked as a duplicate of 18653 ***

-- 
   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||DUPLICATE


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


[Bug libfortran/18297] gfortran : file opening fails if only read access

2004-11-05 Thread mimo2 at free dot fr

--- Additional Comments From mimo2 at free dot fr  2004-11-05 09:15 ---
 I don't know what is the true fortran convention, but this code
  program test
  open(unit=10,file='test.txt',status='old')
  write(*,*) ' file is read'
  end
 works on g77 (and all the other compilers I've used) even when the
 file test.txt is in readonly access. And you would then break backward
 compatibility with g77 !!
   I think we should have this Fortran runtime error: Permission denied only
 if we try to write on the file, not at the opening (and subsequent reading). 

-- 


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


[Bug libfortran/18297] gfortran : file opening fails if only read access

2004-11-05 Thread mimo2 at free dot fr

--- Additional Comments From mimo2 at free dot fr  2004-11-05 17:51 ---
I forgot to reopen the bug after my last comment.

-- 
   What|Removed |Added

 Status|RESOLVED|UNCONFIRMED
 Resolution|INVALID |


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


[Bug libfortran/18297] gfortran : file opening fails if only read access

2004-11-04 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

  Component|fortran |libfortran
Version|unknown |4.0.0


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


[Bug libfortran/18297] gfortran : file opening fails if only read access

2004-11-04 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-04 17:36 
---
Do you have a simple example/testcase?

-- 


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


[Bug libfortran/18297] gfortran : file opening fails if only read access

2004-11-04 Thread bdavis at gcc dot gnu dot org

--- Additional Comments From bdavis at gcc dot gnu dot org  2004-11-04 23:21 
---
gfortran runtime does not know that you only intend to write to the file.  you
need to add ACCESS='READ' to the open statement.  With ACCESS set to read, a
read only file can be opened.

i do not think this is a bug.  

--bud davis

-- 


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


[Bug libfortran/18297] gfortran : file opening fails if only read access

2004-11-04 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-05 01:29 
---
Yes this is invalid by reading the code.

-- 
   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||INVALID


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