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/48462] [4.6/4.7 Regression] realloc on assignment: matmul Segmentation Fault with Allocatable Array


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

--- Comment #11 from Paul Thomas <pault at gcc dot gnu.org> 2011-04-29 20:26:59 UTC ---
Author: pault
Date: Fri Apr 29 20:26:56 2011
New Revision: 173185

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173185
Log:
2011-04-29  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/48462
    * trans-expr.c (arrayfunc_assign_needs_temporary): Deal with
    automatic reallocation when the lhs is a target.

    PR fortran/48746
    * trans-expr.c (fcncall_realloc_result): Make sure that the
    result dtype field is set before the function call.

2011-04-29  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/48462
    * gfortran.dg/realloc_on_assign_7.f03: Modify to test for lhs
    being a target.

    PR fortran/48746
    * gfortran.dg/realloc_on_assign_7.f03: Add subroutine pr48746.

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


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