]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/80657 (Loop in character function declaration)
authorPaul Thomas <pault@gcc.gnu.org>
Sun, 20 May 2018 18:08:04 +0000 (18:08 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 20 May 2018 18:08:04 +0000 (18:08 +0000)
commite62bd7cfb89e07400e852b031e7c2d066c3f2841
tree0ebb4ac537f2d79732ecb3e4a4a48523d0e0c766
parent1af98493eb3f77d1c4d9e73a69803026c10ed9cd
re PR fortran/80657 (Loop in character function declaration)

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.

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