[Bug fortran/86248] [7/8/9/10 Regression] LEN_TRIM in specification expression causes link failure

pault at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Oct 27 17:07:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86248

--- Comment #10 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Sun Oct 27 17:06:38 2019
New Revision: 277489

URL: https://gcc.gnu.org/viewcvs?rev=277489&root=gcc&view=rev
Log:
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.

Added:
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/char_result_19.f90
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/char_result_mod_19.f90
Modified:
    branches/gcc-8-branch/gcc/fortran/ChangeLog
    branches/gcc-8-branch/gcc/fortran/resolve.c
    branches/gcc-8-branch/gcc/fortran/trans-decl.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list