This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, Fortran, F03] PR 39630: Procedure Pointer Components with PASS
2009/7/24 Tobias Burnus <burnus@net-b.de>:
> Daniel Kraft schrieb:
>> + ? ? ?/* TODO: Make this an error once CLASS is implemented. ?*/
>> + ? ? ?if (!sym->attr.sequence)
>> + ? ? ? ?gfc_warning ("Polymorphic entities are not yet implemented,"
>> + ? ? ? ? ? ? " non-polymorphic passed-object dummy argument of '%s'"
>> + ? ? ? ? ? ? " at %L accepted", c->name, &c->loc);
>> +
>> + ? ?}
>>
>> I may mistake here someting, but what has sym->attr.sequence to do
>> with polymorphic entities?
>
> Well, in SEQUENCE types there cannot be any polymorphic entities thus
> using TYPE is fully correct and there should be no warning. Cf. Fortran
> 2003 (constraint about PASS) - last sentence after the semicolon:
Since this question has been answered extensively by Tobias, and the
patch was OK'ed by Daniel, I just committed it as r150078.
Thanks for the review, Daniel. A big thank you also goes to Tobias,
who has given me a lot of feedback on the patch off-list (and who is
again being a great SoC mentor :)
Cheers,
Janus