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]

Re: [Patch, Fortran, OOP] PR 54594: Type-bound ASSIGNMENTs (elemental + array version) rejected as ambiguous


Janus Weil wrote:
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?

OK. Looks rather obvious to me. Thanks for fixing it quickly.


Tobias

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

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

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

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


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