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

Janus Weil janus@gcc.gnu.org
Wed Oct 27 21:31:00 GMT 2010


Hi all,

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?

Cheers,
Janus



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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr46161.diff
Type: application/octet-stream
Size: 1308 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20101027/f2ac3a87/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: class_dummy_3.f03
Type: application/octet-stream
Size: 620 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20101027/f2ac3a87/attachment-0001.obj>


More information about the Fortran mailing list