https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82934
--- Comment #4 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Mon Nov 13 20:46:08 2017 New Revision: 254709 URL: https://gcc.gnu.org/viewcvs?rev=254709&root=gcc&view=rev Log: 2017-11-13 Paul Thomas <pa...@gcc.gnu.org> Backport from trunk PR fortran/82934 * trans-stmt.c (gfc_trans_allocate): Remove the gcc_assert on null string length for assumed length typespec and set expr3_esize to NULL_TREE; 2017-11-13 Paul Thomas <pa...@gcc.gnu.org> Backport from trunk PR fortran/82934 * gfortran.dg/allocate_assumed_charlen_1.f90: New test. Added: branches/gcc-7-branch/gcc/testsuite/gfortran.dg/allocate_assumed_charlen_1.f90 Modified: branches/gcc-7-branch/gcc/fortran/ChangeLog branches/gcc-7-branch/gcc/fortran/trans-stmt.c branches/gcc-7-branch/gcc/testsuite/ChangeLog