re PR fortran/83149 ([6- and 7-branches] Missing test for sym->ns->proc_name: crash_s...
authorPaul Thomas <pault@gcc.gnu.org>
Fri, 23 Feb 2018 17:55:13 +0000 (17:55 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Fri, 23 Feb 2018 17:55:13 +0000 (17:55 +0000)
commit1996c75efdf29aad3f9910207cc900ff621748ba
tree344356fea43ba7c216c4216f5675cd2f73c78aab
parentc6839134ee53c7ee582145c7fb41f20305bf58cf
re PR fortran/83149 ([6- and 7-branches] Missing test for sym->ns->proc_name: crash_signal in toplev.c:325)

2018-02-23  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/83149
* trans-types.c (gfc_sym_type): Test sym->ns->proc_name before
accessing its components.

2018-02-23  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/83149
* gfortran.dg/pr83149_b.f90: New test.
* gfortran.dg/pr83149_a.f90: Additional source for previous.

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