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/48351] [OOP] Realloc on assignment fails if parent component is CLASS


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48351

--- Comment #4 from Paul Thomas <pault at gcc dot gnu.org> 2012-01-13 20:42:07 UTC ---
Author: pault
Date: Fri Jan 13 20:42:01 2012
New Revision: 183162

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183162
Log:
2012-01-13  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/48351
    * trans-array.c (structure_alloc_comps): Suppress interative
    call to self, when current component is deallocated using
    gfc_trans_dealloc_allocated.
    * class.c (gfc_build_class_symbol): Copy the 'alloc_comp'
    attribute from the declared type to the class structure.

2012-01-13  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/48351
    * gfortran.dg/alloc_comp_assign.f03: New.
    * gfortran.dg/allocatable_scalar_9.f90: Reduce count of
    __BUILTIN_FREE from 38 to 32.

Added:
    trunk/gcc/testsuite/gfortran.dg/alloc_comp_assign_12.f03
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/class.c
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/allocatable_scalar_9.f90


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