https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95119
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Thomas Kथà¤nig <tkoe...@gcc.gnu.org>: https://gcc.gnu.org/g:cdc34b505796327b3eee9e97bc5f27ba71fd9e7a commit r11-397-gcdc34b505796327b3eee9e97bc5f27ba71fd9e7a Author: Thomas Koenig <tkoe...@gcc.gnu.org> Date: Thu May 14 18:30:27 2020 +0200 Add early return for invalid STATUS for close. 2020-05-14 Thomas Koenig <tkoe...@gcc.gnu.org> PR libfortran/95119 * io/close.c (close_status): Add CLOSE_INVALID. (st_close): Return early on invalid STATUS parameter. 2020-05-14 Thomas Koenig <tkoe...@gcc.gnu.org> PR libfortran/95119 * testsuite/libgomp.fortran/close_errors_1.f90: New test.