https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47469

--- Comment #4 from Mikael Morin <mikael at gcc dot gnu.org> ---
(In reply to Dominique d'Humieres from comment #3)
> > Tobias' version is prettier! Does it apply without regressions?
> 
> Obviously the patch in comment 0 no longer applies.
> 
> Now finding 'gfc_expr_attr (expr2).pointer' prettier than
> 'expr2->symtree->n.sym->attr.pointer' is just a matter of taste (29
> characters compared to 35). For a newbie like the later is easier to
> understand than the former.
It isn't just a matter of taste.
when expr2 is a subreference (say obj%proc_ptr(...)), it's the pointerness of
the result of the proc_ptr interface that matters, not that of obj.

> 
> BTW what should it be for 'value.function.esym'?

Hmm, gfc_expr_attr should handle it gracefully.

Reply via email to