Committed as obvious in revision 260113. I will commence backporting as soon as I can.
Thanks to Mirco Valentini for the initial fix, which he posted on 2017-02-28. Cheers Paul 2018-05-10 Paul Thomas <pa...@gcc.gnu.org> PR fortran/68846 PR fortran/70864 * resolve.c (get_temp_from_expr): The temporary must not have dummy or intent attributes. 2018-05-10 Paul Thomas <pa...@gcc.gnu.org> PR fortran/68846 * gfortran.dg/temporary_3.f90 : New test. PR fortran/70864 * gfortran.dg/temporary_2.f90 : New test.