[patch, fortran] Fix PR 85387

Thomas König tk@tkoenig.net
Sat Apr 14 11:35:00 GMT 2018


Hello world,

the attached patch fixes the PR, an 8 regression caused by
trying to convert a nested implied DO loop to an array
for a case where this was not possible.

Regression-tested. OK for trunk?

Regards

	Thomas

2018-04-14  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/85387
	* frontend-passes.c (traverse_io_block): Check for start, end or
	stride being defined by an outer implied DO loop.

2018-04-14  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/85387
	* gfortran.dg/implied_do_io_5.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p2.diff
Type: text/x-patch
Size: 823 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20180414/bd2586ed/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: implied_do_io_5.f90
Type: text/x-fortran
Size: 414 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20180414/bd2586ed/attachment-0001.bin>


More information about the Fortran mailing list