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 59143: Bogus warning with array-valued type-bound procedure


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


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