]> 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>
Sun, 13 May 2018 08:34:50 +0000 (08:34 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 13 May 2018 08:34:50 +0000 (08:34 +0000)
commit783858cab3a5ca85b9a12375b8e5c24071d9f03b
tree7c26609754f5e9a5690ee5dd432835ec271773e0
parent305d8b9b0e4f4630cf4eafd0bc4582845900c227
re PR fortran/68846 (Pointer function as LValue doesn't work when the assignment regards a dummy argument.)

2018-05-13  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-13  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: r260208
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]