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 46161: Invalid: Passing non-polymorphic to allocatable polymorphic dummy


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.


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