]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/83149 ([6- and 7-branches] Missing test for sym->ns->proc_name: crash_s...
authorPaul Thomas <pault@gcc.gnu.org>
Wed, 16 May 2018 11:42:47 +0000 (11:42 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Wed, 16 May 2018 11:42:47 +0000 (11:42 +0000)
commitc168a0b16d4971d106301de87375b5da83a187c8
tree811fdff3a990f63f1e690cfd080d8efdc1c3b5be
parentc785e2c364f4973080f70aab8f0511270e75afa6
re PR fortran/83149 ([6- and 7-branches] Missing test for sym->ns->proc_name: crash_signal in toplev.c:325)

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.

From-SVN: r260286
gcc/fortran/ChangeLog
gcc/fortran/trans-decl.c
gcc/fortran/trans-types.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr83149.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr83149_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr83149_a.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr83149_b.f90 [new file with mode: 0644]