Hi all,

here is an OOP patch for type-bound generics. The problem was that
specifics with polymorphic arguments of different ranks were wrongly
rejected as ambiguous, because 'gfc_compare_types' did not properly
handle CLASS arrays. The patch fixes this is regtests cleanly on
x86_64-unknown-linux-gnu. Ok for trunk?

Cheers,
Janus


2012-09-16  Janus Weil  <ja...@gcc.gnu.org>

        PR fortran/54594
        * interface.c (compare_type_rank): Handle CLASS arrays.

2012-09-16  Janus Weil  <ja...@gcc.gnu.org>

        PR fortran/54594
        * gfortran.dg/typebound_generic_14.f03: New.

Attachment: pr54594.diff
Description: Binary data

Attachment: typebound_generic_14.f03
Description: Binary data

Reply via email to