Janus Weil wrote:
the attached patch implements support for polymorphic arguments to
TRANSFER. For details and discussion see the PR.
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?
Looks OK. Thanks for the patch. Nit:
+ result->ts = result->ts.u.derived->components->ts;
can be written as:
+ result->ts = CLASS_DATA (result)->ts;
which is shorter and clearer.
Tobias
2012-11-05 Janus Weil <ja...@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 <ja...@gcc.gnu.org>
PR fortran/54917
* gfortran.dg/transfer_class_1.f90: New.
* gfortran.dg/transfer_class_2.f90: New.