[Bug fortran/80657] [7/8/9 Regression] Loop in character function declaration
pault at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun May 20 11:13:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80657
--- Comment #7 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Sun May 20 11:12:53 2018
New Revision: 260419
URL: https://gcc.gnu.org/viewcvs?rev=260419&root=gcc&view=rev
Log:
2018-05-20 Paul Thomas <pault@gcc.gnu.org>
PR fortran/80657
Backport from trunk
* resolve.c (flag_fn_result_spec): Use the 'sym' argument to
test for self refs to the function result in the character len
expression. If a self reference is found, emit an error and
return true.
(resolve_fntype): Use the function symbol in the calls to the
above.
2018-05-20 Paul Thomas <pault@gcc.gnu.org>
PR fortran/80657
Backport from trunk
* gfortran.dg/char_result_18.f90: New test.
Added:
branches/gcc-8-branch/gcc/testsuite/gfortran.dg/char_result_18.f90
Modified:
branches/gcc-8-branch/gcc/fortran/ChangeLog
branches/gcc-8-branch/gcc/fortran/resolve.c
branches/gcc-8-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list