This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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] PR79072 - ICE with class(*) pointer function result and character value


Dear All,

This is not quite an 'obvious' patch but it does speak for itself. If
there are no objections in the meantime, I will commit it tomorrow
evening.

Bootstraps and regtests on FC23/x86_64 - OK for trunk? What about 7-branch?

Cheers

Paul

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

    PR fortran/79072
    * trans-expr.c (trans_class_vptr_len_assignment): Set from_len
    if the temporary is unlimited polymorphic.
    * trans-stmt.c (trans_associate_var): Use the fake result decl
    to obtain the 'len' field from an explicit function result when
    in that function scope.

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

    PR fortran/79072
    * gfortran.dg/class_result_5.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]