Re: Possible patch for fortran/55086

2016-11-06 Thread Louis Krupp
Dominique, (1) I'm not sure why the 'forall' gets a temporary. (2) As far as I can tell, we get an ICE because the code that generates 'forall' temporaries doesn't work well with substrings. It's hard to test all possible combinations, and this one had been missed. While the original program i

Re: Possible patch for fortran/55086

2016-11-06 Thread Dominique d'Humières
> 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. Well, I don’t understand why the test needs a temporary for forall (i1 = nl1:nu1) o(i1:i1) = i(i1:i1)