Hi,

>>> +      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.

yes, I think no special treatment for class results is necessary. They
cannot have fixed array bounds anyway. I tried some simple example
which were handled properly by the current patch.


>>> 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!

Thanks for the review. Committed as r205345.

Cheers,
Janus

Reply via email to