This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch, fortran] PR82934 - [6/7/8 Regression] Segfault on assumed character length in allocate


Committed as obvious in r254624.

I will apply to 6- and 7-branches over the weekend. Although not a
regression, the fix prevents an ICE in a particularly robust way.

Cheers

Paul

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.

Attachment: submit.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]