[Bug libfortran/78833] Misleading IOMSG after failed WRITE(...,POS=) on unconnected formatted stream file
jvdelisle at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Dec 17 16:58:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78833
Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |jvdelisle at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #5 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Yes, the bug is in your program. After failing to open the subsequent write
statements are assuming default open which is by definition, sequentiial, so
the error message is correct.
On the initial failure your program should not attempt any writes and probably
should gracefully exit.
More information about the Gcc-bugs
mailing list