mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-22 03:46:53 -05:00
re PR fortran/30145 (Fortran 90: write statement fails to ignore zero-sized array...)
2006-12-18 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libfortran/30145 * io/transfer.c (transfer_array): Check for negative extent. From-SVN: r120043
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2006-12-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||||
|
||||
PR libfortran/30145
|
||||
* io/transfer.c (transfer_array): Check for negative extent.
|
||||
|
||||
2006-12-15 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
Backport from mainline:
|
||||
|
||||
@@ -1468,7 +1468,7 @@ transfer_array (st_parameter_dt *dtp, gfc_array_char *desc, int kind,
|
||||
|
||||
/* If the extent of even one dimension is zero, then the entire
|
||||
array section contains zero elements, so we return. */
|
||||
if (extent[n] == 0)
|
||||
if (extent[n] <= 0)
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user