https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80118
--- Comment #5 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Author: tkoenig Date: Fri Oct 6 18:15:26 2017 New Revision: 253500 URL: https://gcc.gnu.org/viewcvs?rev=253500&root=gcc&view=rev Log: 2017-10-06 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-06 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-6-branch/gcc/testsuite/gfortran.dg/zero_sized_7.f90 Modified: branches/gcc-6-branch/gcc/fortran/ChangeLog branches/gcc-6-branch/gcc/fortran/expr.c branches/gcc-6-branch/gcc/testsuite/ChangeLog