Commit 861b2d2c by Jerry DeLisle

re PR fortran/60810 (list directed io from array results in end of file)

2014-04-11  Jerry DeLisle  <jvdelisle@gcc.gnu>

	PR libfortran/60810
	io/unit.c (is_trim_ok): If internal unit is array, do not trim.

From-SVN: r209329
parent cbbd2b1c
2014-04-11 Jerry DeLisle <jvdelisle@gcc.gnu>
PR libfortran/60810
io/unit.c (is_trim_ok): If internal unit is array, do not trim.
2014-03-21 Jerry DeLisle <jvdelisle@gcc.gnu> 2014-03-21 Jerry DeLisle <jvdelisle@gcc.gnu>
PR libfortran/60148 PR libfortran/60148
......
...@@ -382,9 +382,7 @@ static bool ...@@ -382,9 +382,7 @@ static bool
is_trim_ok (st_parameter_dt *dtp) is_trim_ok (st_parameter_dt *dtp)
{ {
/* Check rank and stride. */ /* Check rank and stride. */
if (dtp->internal_unit_desc if (dtp->internal_unit_desc)
&& (GFC_DESCRIPTOR_RANK (dtp->internal_unit_desc) > 1
|| GFC_DESCRIPTOR_STRIDE(dtp->internal_unit_desc, 0) != 1))
return false; return false;
/* Format strings can not have 'BZ' or '/'. */ /* Format strings can not have 'BZ' or '/'. */
if (dtp->common.flags & IOPARM_DT_HAS_FORMAT) if (dtp->common.flags & IOPARM_DT_HAS_FORMAT)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment