[Bug fortran/82934] [6/7/8 Regression] Segfault on assumed character length in allocate
pault at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Nov 10 12:25:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82934
--- Comment #2 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Fri Nov 10 12:24:24 2017
New Revision: 254624
URL: https://gcc.gnu.org/viewcvs?rev=254624&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gfortran.dg/allocate_assumed_charlen_1.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/trans-stmt.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list