]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: fix checking of arguments to UNPACK when MASK is a variable [PR105813]
authorHarald Anlauf <anlauf@gmx.de>
Fri, 24 Jun 2022 20:21:39 +0000 (22:21 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Fri, 1 Jul 2022 17:10:47 +0000 (19:10 +0200)
commit1214ebb39cd250fda678ec89c785fcea86888a89
tree16ecd77a62a2fc0f8be01db8b3541aefc0287d4d
parentbedcdedfad671198365a7ce77c28040c2aa6e2e7
Fortran: fix checking of arguments to UNPACK when MASK is a variable [PR105813]

gcc/fortran/ChangeLog:

PR fortran/105813
* check.c (gfc_check_unpack): Try to simplify MASK argument to
UNPACK so that checking of the VECTOR argument can work when MASK
is a variable.

gcc/testsuite/ChangeLog:

PR fortran/105813
* gfortran.dg/unpack_vector_1.f90: New test.

(cherry picked from commit f21f17f95c0237f4f987a5fa9f1fa9c7e0db3c40)
gcc/fortran/check.c
gcc/testsuite/gfortran.dg/unpack_vector_1.f90 [new file with mode: 0644]