On 11/8/26 2:07 AM, Mikael Morin wrote:
Le 08/11/2026 à 10:15, Thomas Koenig a écrit :
Hi,
debugging a regression on a patch, I just stumbled across a
symbol with addr.flavor = FL_PARAMETER and attr.dummy = 1, which
IMHO makes less than zero sense.
This apparently comes from, in coarray.cc,
#define ADD_ARG(name, nsym, stype, skind, sintent) \
gfc_get_symbol (name, sub_ns, &nsym);
\
nsym->ts.type = stype;
\
nsym->ts.kind = skind;
\
nsym->attr.flavor = FL_PARAMETER;
\
nsym->attr.dummy = 1;
\
nsym->attr.intent = sintent;
\
nsym->declared_at = expr-
>where; \
gfc_set_sym_referenced (nsym);
\
*argptr = gfc_get_formal_arglist ();
\
(*argptr)->sym = nsym;
\
However, I'm not into coarray code, so there may be some hidden meaning
to it after all.
Comments?.
This could have been written by a person knowing less the fortran world than the
C or middle-end world, where "parameter" means procedure argument.
Best regards
Thomas
I will investigate.
Jerry