[Patch, Fortran, OOP] PR 46161: Invalid: Passing non-polymorphic to allocatable polymorphic dummy

Tobias Burnus burnus@net-b.de
Wed Oct 27 21:43:00 GMT 2010


Janus Weil wrote:
> here is a small patch which adds some checking for polymorphic
> allocatable dummies. Pretty self-explanatory I think.
>
> Regtested on x86_64-unknown-linux-gnu. Ok for trunk?

OK. Thanks for the patch!

Tobias

> 2010-10-27  Janus Weil<janus@gcc.gnu.org>
>
> 	PR fortran/46161
> 	* interface.c (compare_allocatable): Handle polymorphic allocatables.
> 	(compare_parameter): Add two error messages for polymorphic dummies.
>
> 2010-10-27  Janus Weil<janus@gcc.gnu.org>
>
> 	PR fortran/46161
> 	* gfortran.dg/class_dummy_3.f03: New.



More information about the Fortran mailing list