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 16:22:28 +0000 (16:22 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Fri, 23 Feb 2018 16:22:28 +0000 (16:22 +0000)
commit6869c12de3dacfec29bbe662904b8343831e94bd
tree9a45f2964bb87f833b4ad29e6e51c3caaff530da
parent32995c0244ae42436a1ee89de20a082fa2a71d93
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-decl.c (gfc_finish_var_decl): Test sym->ns->proc_name
before accessing its components.

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

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

From-SVN: r257934
gcc/fortran/ChangeLog
gcc/fortran/trans-decl.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]