]> gcc.gnu.org Git - 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, 24 Jun 2022 20:27:11 +0000 (22:27 +0200)
commitf21f17f95c0237f4f987a5fa9f1fa9c7e0db3c40
treead64676d085560c8ae29460098ba9c608bfefbc0
parent5cd0e800195ce0f5cb88cde3f2e98b102174847a
Fortran: fix checking of arguments to UNPACK when MASK is a variable [PR105813]

gcc/fortran/ChangeLog:

PR fortran/105813
* check.cc (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.
gcc/fortran/check.cc
gcc/testsuite/gfortran.dg/unpack_vector_1.f90 [new file with mode: 0644]
This page took 0.064658 seconds and 5 git commands to generate.