https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68846
--- Comment #11 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Sun May 13 08:34:50 2018 New Revision: 260208 URL: https://gcc.gnu.org/viewcvs?rev=260208&root=gcc&view=rev Log: 2018-05-13 Paul Thomas <pa...@gcc.gnu.org> PR fortran/68846 PR fortran/70864 Backport from trunk * resolve.c (get_temp_from_expr): The temporary must not have dummy or intent attributes. 2018-05-13 Paul Thomas <pa...@gcc.gnu.org> PR fortran/68846 Backport from trunk * gfortran.dg/temporary_3.f90 : New test. PR fortran/70864 Backport from trunk * gfortran.dg/temporary_2.f90 : New test. Added: branches/gcc-6-branch/gcc/testsuite/gfortran.dg/temporary_2.f90 branches/gcc-6-branch/gcc/testsuite/gfortran.dg/temporary_3.f90 Modified: branches/gcc-6-branch/gcc/fortran/ChangeLog branches/gcc-6-branch/gcc/fortran/resolve.c branches/gcc-6-branch/gcc/testsuite/ChangeLog