http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57843

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
            Summary|[OOP] Polymorphic           |[OOP] Type-bound assignment
                   |assignment for derived type |is resolved to
                   |is resolved with parent's   |non-polymorphic procedure
                   |generic instead of its own  |call

--- Comment #5 from janus at gcc dot gnu.org ---
I think the problem lies in gfc_extend_assign (interface.c): We first try to
find a (non-typebound) assignment operator and only afterwards look for
type-bound assignments. Problem is: All typebound assignment procedures are
also being added to the list of normal assignment procedures (ns->op), because
they can also be used in a non-polymorphic fashion.

Reply via email to