https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80118
--- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Author: tkoenig Date: Tue Oct 3 15:50:45 2017 New Revision: 253383 URL: https://gcc.gnu.org/viewcvs?rev=253383&root=gcc&view=rev Log: 2017-10-03 Thomas Koenig <tkoe...@gcc.gnu.org> Steven G. Kargl <ka...@gcc.gnu.org> Backport from trunk PR fortran/80118 * expr.c (gfc_get_full_arrayspec_from_expr): If there is no symtree, set array spec to NULL. 2017-10-03 Thomas Koenig <tkoe...@gcc.gnu.org> Steven G. Kargl <ka...@gcc.gnu.org> Backport from trunk PR fortran/80118 * gfortran.dg/zero_sized_7.f90: New test. Added: branches/gcc-7-branch/gcc/testsuite/gfortran.dg/zero_sized_7.f90 Modified: branches/gcc-7-branch/gcc/fortran/ChangeLog branches/gcc-7-branch/gcc/fortran/expr.c branches/gcc-7-branch/gcc/testsuite/ChangeLog