This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/38382] New: Open(Unit=6 fails
- From: "vinzent dot boerner at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Dec 2008 15:59:32 -0000
- Subject: [Bug fortran/38382] New: Open(Unit=6 fails
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The command: Open(Unit=6, .... is compiled without error but leads to
missinterpration of the following commands (e.g. write(*,*) is comiled as
"write to file"). Thus, if there is a write(*,*)-command after the open-command
and the exe-file is executed there is the following error message: "Fortran Run
Time Error, Cannot write to file open for read". If the unit number is changed
to anything else (e.g. 5 or 7) this error disappears and the exe works. Thus
the compiler cannot work with the unit number "6".
--
Summary: Open(Unit=6 fails
Product: gcc
Version: 4.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: vinzent dot boerner at gmx dot de
GCC target triplet: i686-pc-cygwin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38382