re PR fortran/86281 (SEGV in fortran/resolve.c:resolve_function)
authorPaul Thomas <pault@gcc.gnu.org>
Fri, 22 Jun 2018 22:31:17 +0000 (22:31 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Fri, 22 Jun 2018 22:31:17 +0000 (22:31 +0000)
commit474f253087bc346a346557b8ac152c02438930b6
treeeddef86edc208241ba2296776c53f17c60c52211
parent9395b1d99fd7463173e031ce35f53138b061efef
re PR fortran/86281 (SEGV in fortran/resolve.c:resolve_function)

2018-06-22  Paul Thomas  <pault@gcc.gnu.org>
    Rainer Orth  <ro@gcc.gnu.org>

PR fortran/86281
* resolve.c (resolve_contained_fntype): Check for the charlen
before testing the length.

2018-06-22  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/86281
* gfortran.dg/assumed_charlen_function_7.f90: Add -std=legacy.

Co-Authored-By: Rainer Orth <ro@gcc.gnu.org>
From-SVN: r261975
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/assumed_charlen_function_7.f90