[Patch, Fortran, OOP] PR 59143: Bogus warning with array-valued type-bound procedure

Tobias Burnus burnus@net-b.de
Sun Nov 24 22:36:00 GMT 2013


Hi Janus,

Janus Weil wrote:
>> +      else if (ref->type == REF_COMPONENT &&
>> ref->u.c.component->attr.function
>> +              && ref->u.c.component->attr.proc_pointer
>> +              && ref->u.c.component->attr.dimension)

I wonder whether one should take care of functions returning BT_CLASS, 
but I think one doesn't need to.

>> You cannot assume that the function returns an explicit size array with
>> constant bounds.
> A new version is attached, and I have added one of your examples to
> the test case.  Ok now?

OK. Thanks for the patch!

Tobias



More information about the Fortran mailing list