re PR fortran/59345 (_gfortran_internal_pack on compiler generated temps)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 13 Jan 2019 11:06:03 +0000 (11:06 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 13 Jan 2019 11:06:03 +0000 (11:06 +0000)
commit5f8865c358bed3c7f71329b429a617ad8150a042
tree0a66079575ac33a1212be350cbd4d286af6fdfcd
parent264201216816c9145e40b856628a6c3e3eec6178
re PR fortran/59345 (_gfortran_internal_pack on compiler generated temps)

2019-01-13  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/59345
* trans-array.c (gfc_conv_array_parameter): Remove TODO.  Do not
pack/unpack results of functions which return an explicit-shaped
or allocatable array.

2019-01-13  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/59345
* gfortran.dg/internal_pack_17.f90: New test.
* gfortran.dg/alloc_comp_auto_array_3.f90: Adjust number of calls
to builtin_free.

From-SVN: r267903
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/alloc_comp_auto_array_3.f90
gcc/testsuite/gfortran.dg/internal_pack_17.f90 [new file with mode: 0644]