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


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