[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
Tue Nov 14 17:39:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82934
--- Comment #5 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Tue Nov 14 17:38:38 2017
New Revision: 254733
URL: https://gcc.gnu.org/viewcvs?rev=254733&root=gcc&view=rev
Log:
2017-11-13 Paul Thomas <pault@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 <pault@gcc.gnu.org>
Backport from trunk
PR fortran/82934
* gfortran.dg/allocate_assumed_charlen_1.f90: New test.
Added:
branches/gcc-6-branch/gcc/testsuite/gfortran.dg/allocate_assumed_charlen_1.f90
Modified:
branches/gcc-6-branch/gcc/fortran/ChangeLog
branches/gcc-6-branch/gcc/fortran/trans-stmt.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list