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, OOP] PR 54917: [4.7/4.8 Regression] TRANSFER on polymorphic variable causes ICE


Hi all,

the attached patch implements support for polymorphic arguments to
TRANSFER. For details and discussion see the PR.

The patch was regtested successfully on x86_64-unknown-linux-gnu. Ok for trunk?

Btw, as part of the PR is a regression in 4.7 and trunk, I would like
to backport the target-memory.c part and the first test case to the
4.7 branch. Ok?

Cheers,
Janus


2012-11-05  Janus Weil  <janus@gcc.gnu.org>

    PR fortran/54917
    * target-memory.c (gfc_target_expr_size,gfc_target_interpret_expr):
    Handle BT_CLASS.
    * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Add support for
    polymorphic arguments.

2012-11-05  Janus Weil  <janus@gcc.gnu.org>

    PR fortran/54917
    * gfortran.dg/transfer_class_1.f90: New.
    * gfortran.dg/transfer_class_2.f90: New.

Attachment: pr54917.diff
Description: Binary data

Attachment: transfer_class_1.f90
Description: Binary data

Attachment: transfer_class_2.f90
Description: Binary data


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