]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fixes a hang on an invalid ID in a WAIT statement.
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 23 May 2020 17:01:43 +0000 (19:01 +0200)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Wed, 27 May 2020 14:39:11 +0000 (16:39 +0200)
commitb3b9ee70f3ea73bae3f7d2956172ca9c0a338980
tree1308a3cb3e70d179431d38d3f5d0a4e0c3826d5c
parent2fbc989aee0a703a637cc2c907a985a117b60a7c
Fixes a hang on an invalid ID in a WAIT statement.

gcc/fortran/ChangeLog:

2020-05-23  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR libfortran/95191
* libgfortran.h (libgfortran_error_codes): Add
LIBERROR_BAD_WAIT_ID.

libgfortran/ChangeLog:

2020-05-23  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR libfortran/95191
* io/async.c (async_wait_id): Generate error if ID is higher
than the highest current ID.
* runtime/error.c (translate_error): Handle LIBERROR_BAD_WAIT_ID.

libgomp/ChangeLog:

2020-05-23  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR libfortran/95191
* testsuite/libgomp.fortran/async_io_9.f90: New test.

(cherry picked from commit 8df7ee67f6fdc780e9453f2baa8d1bf62c000761)
gcc/fortran/libgfortran.h
libgfortran/io/async.c
libgfortran/runtime/error.c
libgomp/testsuite/libgomp.fortran/async_io_9.f90 [new file with mode: 0644]