http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57364

--- Comment #3 from mikael.morin at sfr dot fr ---
Le 22/05/2013 11:22, burnus at gcc dot gnu.org a écrit :
> --- a/gcc/fortran/resolve.c
> +++ b/gcc/fortran/resolve.c
> @@ -9299,4 +9299,5 @@ get_temp_from_expr (gfc_expr *e, gfc_namespace *ns)
>      tmp->n.sym->attr.dimension = 0;
> 
> +  gfc_commit_symbol (tmp->n.sym);
>    gfc_set_sym_referenced (tmp->n.sym);
>    gfc_add_flavor (&tmp->n.sym->attr, FL_VARIABLE, name, NULL);
> 
Without looking at the code, gfc_commit_symbol should come after the
gfc_set_sym_referenced, gfc_add_flavor, etc, and any modification made
to tmp->n.sym.

Reply via email to