re PR libfortran/32731 (pack/unpack with kind=1 or kind=2 mask)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 14 Jul 2007 20:39:10 +0000 (20:39 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 14 Jul 2007 20:39:10 +0000 (20:39 +0000)
commit3b3620db92522cb3c4d64e476ec1ce6a540044ef
tree882fafe4edcc95b5b0f95aa140ea91d799393487
parent27e3a7bc8d8101c0f85ac2e057a8784cb8d24326
re PR libfortran/32731 (pack/unpack with kind=1 or kind=2 mask)

2007-07-14  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR libfortran/32731
* iresolve.c(gfc_resolve_pack):  A scalar mask has
to be kind=4, an array mask with kind<4 is converted
to gfc_default_logical_kind automatically.
(gfc_resolve_unpack):  Convert mask to gfc_default_lotical_kind
if it has a kind<4.

2007-07-14  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR libfortran/32731
* gfortran.dg/pack_mask_1.f90:  New test.
* gfortran.dg/unpack_mask_1.f90:  New test.

From-SVN: r126644
gcc/fortran/ChangeLog
gcc/fortran/iresolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pack_mask_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/unpack_mask_1.f90 [new file with mode: 0644]