[Bug fortran/52151] Segfault with realloc on assignment and RESHAPE to unallocated LHS
burnus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Feb 8 21:30:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52151
--- Comment #5 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-02-08 21:29:52 UTC ---
Author: burnus
Date: Wed Feb 8 21:29:45 2012
New Revision: 184020
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184020
Log:
2012-02-08 Tobias Burnus <burnus@net-b.de>
PR fortran/52151
* trans-expr.c (fcncall_realloc_result): Set also the stride.
2012-02-08 Tobias Burnus <burnus@net-b.de>
PR fortran/52151
* gfortran.dg/realloc_on_assign_12.f90: New.
Added:
branches/gcc-4_6-branch/gcc/testsuite/gfortran.dg/realloc_on_assign_12.f90
Modified:
branches/gcc-4_6-branch/gcc/fortran/ChangeLog
branches/gcc-4_6-branch/gcc/fortran/trans-expr.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list