re PR fortran/82934 (Segfault on assumed character length in allocate)
authorPaul Thomas <pault@gcc.gnu.org>
Fri, 10 Nov 2017 12:24:24 +0000 (12:24 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Fri, 10 Nov 2017 12:24:24 +0000 (12:24 +0000)
commit8cd119d857b727ce0ee7b3c7aead38d8fdcc1a7e
tree14b398d7e1063d2eaaec7b3e0c7797797beeb428
parent9e875fd864e1ddf636c015a35985bccf732b645a
re PR fortran/82934 (Segfault on assumed character length in allocate)

2017-11-10  Paul Thomas  <pault@gcc.gnu.org>

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-10  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/82934
* gfortran.dg/allocate_assumed_charlen_1.f90: New test.

From-SVN: r254624
gcc/fortran/ChangeLog
gcc/fortran/trans-stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/allocate_assumed_charlen_1.f90 [new file with mode: 0644]