diff options
author | jvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-07-26 01:40:29 +0000 |
---|---|---|
committer | jvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-07-26 01:40:29 +0000 |
commit | 06f2596d32da38889520550924ba515b019e89af (patch) | |
tree | a150d0afe386d0dc4db831914233d337476522e6 /libgfortran/io/file_pos.c | |
parent | 92a603d56fea2d0541d1d711e79339bff326cf69 (diff) | |
download | ppe42-gcc-06f2596d32da38889520550924ba515b019e89af.tar.gz ppe42-gcc-06f2596d32da38889520550924ba515b019e89af.zip |
2006-07-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/258335
* close.c (st_close): Add error when UNIT does not exist.
* file_position.c (st_flush): Add error when UNIT does not exist.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115749 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/io/file_pos.c')
-rw-r--r-- | libgfortran/io/file_pos.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libgfortran/io/file_pos.c b/libgfortran/io/file_pos.c index e9697bb7ede..7a71ecef63b 100644 --- a/libgfortran/io/file_pos.c +++ b/libgfortran/io/file_pos.c @@ -340,6 +340,9 @@ st_flush (st_parameter_filepos *fpp) flush (u->s); unlock_unit (u); } + else + generate_error (&fpp->common, ERROR_BAD_OPTION, + "Can't find specified UNIT in FLUSH"); library_end (); } |