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