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

Janus Weil janus@gcc.gnu.org
Sun Sep 16 16:30:00 GMT 2012


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  <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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr54594.diff
Type: application/octet-stream
Size: 974 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120916/c6fc79bb/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: typebound_generic_14.f03
Type: application/octet-stream
Size: 522 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120916/c6fc79bb/attachment-0001.obj>


More information about the Gcc-patches mailing list