[Bug fortran/30720] runtime: check for empty array slices before allocating a negative amount of memory
fxcoudert at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Feb 9 20:31:00 GMT 2007
------- Comment #8 from fxcoudert at gcc dot gnu dot org 2007-02-09 20:31 -------
Subject: Bug 30720
Author: fxcoudert
Date: Fri Feb 9 20:31:18 2007
New Revision: 121773
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121773
Log:
PR fortran/30720
* trans-array.c (gfc_trans_create_temp_array): Remove use of the
function argument. Always generate code for negative extent.
Simplify said code.
* trans-array.h (gfc_trans_create_temp_array): Change prototype.
* trans-expr.c (gfc_conv_function_call): Remove use of last argument
of gfc_trans_create_temp_array.
* trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Likewise.
* trans-stmt.c (gfc_conv_elemental_dependencies): Likewise.
* gfortran.dg/array_function_1.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/array_function_1.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/trans-array.c
trunk/gcc/fortran/trans-array.h
trunk/gcc/fortran/trans-expr.c
trunk/gcc/fortran/trans-intrinsic.c
trunk/gcc/fortran/trans-stmt.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30720
More information about the Gcc-bugs
mailing list