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, OOP] PR 57843: Type-bound assignment is resolved to non-polymorphic procedure call


Hi all,

here is a wrong-code fix for type-bound assignments, which makes sure
that these are resolved to polymorphic procedure calls. This was not
always the case, because we used the wrong ordering when checking for
defined-assignment procedures (looking for non-typebound ones first,
and for typebound ones only afterwards). See in particular comment 3 -
5 in the PR.

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

Cheers,
Janus


2013-08-22  Janus Weil  <janus@gcc.gnu.org>

    PR fortran/57843
    * interface.c (gfc_extend_assign): Look for type-bound assignment
    procedure before non-typebound.


2013-08-22  Janus Weil  <janus@gcc.gnu.org>

    PR fortran/57843
    * gfortran.dg/typebound_assignment_7.f90: New.

Attachment: pr57843.diff
Description: Binary data

Attachment: typebound_assignment_7.f90
Description: Binary data


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