re PR fortran/80118 (ICE with zero size parameter array)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 24 Sep 2017 08:39:00 +0000 (08:39 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 24 Sep 2017 08:39:00 +0000 (08:39 +0000)
commit650f7d09d22fc876bdceb93a47d2abf068c676db
tree667b16bf637db0a4449c057781f75bb37d30eaa0
parente6a951d26565dd138af99b3cb9c3ec4f10e74458
re PR fortran/80118 (ICE with zero size parameter array)

2017-09-24  Thomas Koenig  <tkoenig@gcc.gnu.org>
    Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/80118
* expr.c (gfc_get_full_arrayspec_from_expr): If there is
no symtree, set array spec to NULL.

2017-09-24  Thomas Koenig  <tkoenig@gcc.gnu.org>
    Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/80118
* gfortran.dg/zero_sized_7.f90: New test.

Co-Authored-By: Steven G. Kargl <kargl@gcc.gnu.org>
From-SVN: r253123
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/zero_sized_7.f90 [new file with mode: 0644]