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 <ja...@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 <ja...@gcc.gnu.org> PR fortran/57843 * gfortran.dg/typebound_assignment_7.f90: New.
pr57843.diff
Description: Binary data
typebound_assignment_7.f90
Description: Binary data