This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/48960] OPEN statement modifies NEWUNIT variable on error
- From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 26 Dec 2012 18:11:50 +0000
- Subject: [Bug libfortran/48960] OPEN statement modifies NEWUNIT variable on error
- Auto-submitted: auto-generated
- References: <bug-48960-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48960
--- Comment #4 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2012-12-26 18:11:50 UTC ---
Author: jvdelisle
Date: Wed Dec 26 18:11:42 2012
New Revision: 194724
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=194724
Log:
2012-12-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/48960
* io/open.c (st_parameter_open): Assign newunit number to user
variable only if the the associated open statement is successful.
Modified:
trunk/libgfortran/ChangeLog
trunk/libgfortran/io/open.c