This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/67171] [6 regression] sourced allocation


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

--- Comment #11 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Wed Nov  4 20:00:19 2015
New Revision: 229777

URL: https://gcc.gnu.org/viewcvs?rev=229777&root=gcc&view=rev
Log:
2015-01-25  Paul Thomas  <pault@gcc.gnu.org>

        Backported from trunk.
        PR fortran/67171
        * trans-array.c (structure_alloc_comps): On deallocation of
        class components, reset the vptr to the declared type vtable
        and reset the _len field of unlimited polymorphic components.
        *trans-expr.c (gfc_find_and_cut_at_last_class_ref): Bail out on
        allocatable component references to the right of part reference
        with non-zero rank and return NULL.
        (gfc_reset_vptr): Simplify this function by using the function
        gfc_get_vptr_from_expr. Return if the vptr is NULL_TREE.
        (gfc_reset_len): If gfc_find_and_cut_at_last_class_ref returns
        NULL return.

2015-01-25  Paul Thomas  <pault@gcc.gnu.org>

        Backported from trunk.
        PR fortran/67171
        * gfortran.dg/allocate_with_source_12.f03: New test

        Backported from trunk.
        PR fortran/61819
        * gfortran.dg/allocate_with_source_13.f03: New test

        Backported from trunk.
        PR fortran/61830
        * gfortran.dg/allocate_with_source_14.f03: New test

        Backported from trunk.
        PR fortran/67933
        * gfortran.dg/allocate_with_source_15.f03: New test

Added:
    branches/gcc-5-branch/gcc/testsuite/gfortran.dg/allocate_with_source_12.f03
    branches/gcc-5-branch/gcc/testsuite/gfortran.dg/allocate_with_source_13.f03
    branches/gcc-5-branch/gcc/testsuite/gfortran.dg/allocate_with_source_14.f03
    branches/gcc-5-branch/gcc/testsuite/gfortran.dg/allocate_with_source_15.f03
Modified:
    branches/gcc-5-branch/gcc/fortran/ChangeLog
    branches/gcc-5-branch/gcc/fortran/trans-array.c
    branches/gcc-5-branch/gcc/fortran/trans-expr.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]