re PR fortran/68846 (Pointer function as LValue doesn't work when the assignment...
authorPaul Thomas <pault@gcc.gnu.org>
Thu, 10 May 2018 10:48:50 +0000 (10:48 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Thu, 10 May 2018 10:48:50 +0000 (10:48 +0000)
commit9caa7e073b3e03a8fd1402fe0087b8078c6973de
tree5462f5826baf175356cf39d9559745de624efac7
parent84ec5aea4833897a100ca6a3a257ebab23b44f93
re PR fortran/68846 (Pointer function as LValue doesn't work when the assignment regards a dummy argument.)

2018-05-10  Paul Thomas  <pault@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  <pault@gcc.gnu.org>

PR fortran/68846
* gfortran.dg/temporary_3.f90 : New test.

PR fortran/70864
* gfortran.dg/temporary_2.f90 : New test.

From-SVN: r260113
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]