http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59419
Bug ID: 59419 Summary: [4.9 Regression] Failing OPEN with FILE='xxx' and IOSTAT creates the file 'xxx' after revision 196783 Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libfortran Assignee: unassigned at gcc dot gnu.org Reporter: dominiq at lps dot ens.fr CC: jb at gcc dot gnu.org, t...@tilo-schwarz.de While the test open(unit=-10, file='xxx') end gives an error at run time without creating the file 'xxx'. The test integer :: i open(unit=-10, file='xxx', iostat=i) print *, i end prints 5002 at run time and create an empty file 'xxx'. This does not happens with r196783, but does with r196819.