[Bug fortran/83567] Parametrized derived types: Segmentation fault when assigning a function return value

pault at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 28 13:50:00 GMT 2017


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

--- Comment #3 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Thu Dec 28 13:22:36 2017
New Revision: 256019

URL: https://gcc.gnu.org/viewcvs?rev=256019&root=gcc&view=rev
Log:
2017-12-28  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/83567
        * trans-expr.c (gfc_trans_assignment_1): Free parameterized
        components of the lhs if dealloc is set.
        *trans-decl.c (gfc_trans_deferred_vars): Do not free the
        parameterized components of function results on leaving scope.


2017-12-28  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/83567
        * gfortran.dg/pdt_26.f90 : New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/pdt_26.f03
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-decl.c
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list