Possible patch for fortran/55086
Steve Kargl
sgk@troutmask.apl.washington.edu
Fri Nov 4 01:09:00 GMT 2016
On Wed, Oct 26, 2016 at 12:21:51PM -0700, Louis Krupp wrote:
>
> The problem was that forall could handle substring expressions,
> but not if it had to create a temporary array. I did my best
> to fix this. I left a couple of TODO comments in the code.
>
> Part of the issue is that forall doesn't usually create a temporary,
> so that code doesn't get as much test coverage as it probably should.
> I added an option (-fforce-forall-temp) to force forall to use a
> temporary, and I set that option in a couple of the test files.
>
> I would not be surprised if there were a better way to do this.
>
> When I tweak gfc_trans_forall_1() to force usage of a temporary
> for all assignments, all tests pass with the exception of forall_8.f90,
> and the whole point of that test is making sure that this particular
> forall *doesn't* use a temporary.
>
> Louis Krupp
>
I did not see anything in the patch that raised a
concern. Give some time on Saturday to test the
patch and I'll get back to you with an OK (unless
another person wants to give an OK before then).
--
Steve
More information about the Fortran
mailing list