]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/68846 (Pointer function as LValue doesn't work when the assignment...
authorPaul Thomas <pault@gcc.gnu.org>
Sat, 12 May 2018 15:33:24 +0000 (15:33 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sat, 12 May 2018 15:33:24 +0000 (15:33 +0000)
commit1889a748b42299dc0da612b14dfac1ed0abc7e50
tree0398a88c5b2af01e45141b37454aaeb835b448fa
parent707c9c8f238da8fc68f7fab3d5438e48050ab0c8
re PR fortran/68846 (Pointer function as LValue doesn't work when the assignment regards a dummy argument.)

2018-05-12  Paul Thomas  <pault@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-12  Paul Thomas  <pault@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.

From-SVN: r260195
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/temporary_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/temporary_3.f90 [new file with mode: 0644]