This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/68846] Pointer function as LValue doesn't work when the assignment regards a dummy argument.
- From: "pault at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 11 May 2018 09:36:27 +0000
- Subject: [Bug fortran/68846] Pointer function as LValue doesn't work when the assignment regards a dummy argument.
- Auto-submitted: auto-generated
- References: <bug-68846-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68846
--- Comment #9 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Fri May 11 09:35:55 2018
New Revision: 260160
URL: https://gcc.gnu.org/viewcvs?rev=260160&root=gcc&view=rev
Log:
2018-05-11 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-11 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.
Added:
branches/gcc-8-branch/gcc/testsuite/gfortran.dg/temporary_2.f90
branches/gcc-8-branch/gcc/testsuite/gfortran.dg/temporary_3.f90
Modified:
branches/gcc-8-branch/gcc/fortran/ChangeLog
branches/gcc-8-branch/gcc/fortran/resolve.c
branches/gcc-8-branch/gcc/testsuite/ChangeLog