[Bug fortran/87625] [OOP] (re)allocate on assignment fails for polymorphic array

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Oct 18 19:36:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87625

--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Author: burnus
Date: Thu Oct 18 19:35:34 2018
New Revision: 265283

URL: https://gcc.gnu.org/viewcvs?rev=265283&root=gcc&view=rev
Log:
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.


Added:
    trunk/gcc/testsuite/gfortran.dg/realloc_on_assign_31.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list