Fix (re)alloc of polymorphic arrays
commitd0477233215e37dea91b1a98e58074257d7fbb5b
authorTobias Burnus <burnus@net-b.de>
Thu, 18 Oct 2018 19:35:34 +0000 (18 21:35 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Thu, 18 Oct 2018 19:35:34 +0000 (18 21:35 +0200)
treebe3c7d345234f820644bfca1ce75a9c27156a169
parenta9a2fddbf2a93b8427478954d4efe9e02080454f
Fix (re)alloc of polymorphic arrays

        PR fortran/87625
        * trans-array.c (gfc_is_reallocatable_lhs): Detect allocatable
        polymorphic arrays.

        PR fortran/87625
        * gfortran.dg/realloc_on_assign_31.f90: New file.

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