[Bug fortran/83149] [6- and 7-branches] Missing test for sym->ns->proc_name: crash_signal in toplev.c:325

pault at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed May 16 11:17:00 GMT 2018


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

--- Comment #14 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Wed May 16 11:17:10 2018
New Revision: 260285

URL: https://gcc.gnu.org/viewcvs?rev=260285&root=gcc&view=rev
Log:
2018-05-16  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/83149
        Backport from trunk
        * trans-decl.c (gfc_finish_var_decl): Test sym->ns->proc_name
        before accessing its components.
        * trans-types.c (gfc_sym_type): If a character result has null
        backend_decl, try the procedure symbol..

2018-05-16  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/83149
        Backport from trunk
        * gfortran.dg/pr83149_1.f90: New test.
        * gfortran.dg/pr83149.f90: Additional source for previous.
        * gfortran.dg/pr83149_b.f90: New test.
        * gfortran.dg/pr83149_a.f90: Additional source for previous.


Added:
    branches/gcc-7-branch/gcc/testsuite/gfortran.dg/pr83149.f90
    branches/gcc-7-branch/gcc/testsuite/gfortran.dg/pr83149_1.f90
    branches/gcc-7-branch/gcc/testsuite/gfortran.dg/pr83149_a.f90
    branches/gcc-7-branch/gcc/testsuite/gfortran.dg/pr83149_b.f90
Modified:
    branches/gcc-7-branch/gcc/fortran/ChangeLog
    branches/gcc-7-branch/gcc/fortran/trans-decl.c
    branches/gcc-7-branch/gcc/fortran/trans-types.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list