]> gcc.gnu.org Git - gcc.git/commit - gcc/fortran/ChangeLog
re PR fortran/80657 (Loop in character function declaration)
authorPaul Thomas <pault@gcc.gnu.org>
Sun, 20 May 2018 11:12:53 +0000 (11:12 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 20 May 2018 11:12:53 +0000 (11:12 +0000)
commit9d7cd37cec48d837e9c179f07d8bffec1b2ae48e
tree2567a46d3685d9c211577d435a00d6a36137bbdc
parent9b2b476699589e628a4d8f56222f151ffac9fd19
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: r260419
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/char_result_18.f90 [new file with mode: 0644]
This page took 0.068628 seconds and 5 git commands to generate.