]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR fortran/86248 (LEN_TRIM in specification expression causes link failure)
authorPaul Thomas <pault@gcc.gnu.org>
Sun, 27 Oct 2019 16:21:36 +0000 (16:21 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 27 Oct 2019 16:21:36 +0000 (16:21 +0000)
commit07ae342ac7317a671f919d934c3273b318a2bdb4
treee35e7d8c6f3f480ef8db82783ac426281c4ff45d
parent9908023fd2e80216a085701d787d35d5c3d304ff
backport: re PR fortran/86248 (LEN_TRIM in specification expression causes link failure)

2019-10-27  Paul Thomas  <pault@gcc.gnu.org>

Backport from mainline
PR fortran/86248
* resolve.c (flag_fn_result_spec): Correct a typo before the
function declaration.
* trans-decl.c (gfc_sym_identifier): Boost the length of 'name'
to allow for all variants. Simplify the code by using a pointer
to the symbol's proc_name and taking the return out of each of
the conditional branches. Allow symbols with fn_result_spec set
that do not come from a procedure namespace and have a module
name to go through the non-fn_result_spec branch.

2019-10-27  Paul Thomas  <pault@gcc.gnu.org>

Backport from mainline
PR fortran/86248
* gfortran.dg/char_result_19.f90 : New test.
* gfortran.dg/char_result_mod_19.f90 : Module for the new test.

From-SVN: r277488
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/fortran/trans-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/char_result_19.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/char_result_mod_19.f90 [new file with mode: 0644]