[Patch, Fortran] PR fortran/37193: USE m, ONLY: i, j => i
Daniel Kraft
d@domob.eu
Wed Sep 3 12:28:00 GMT 2008
Daniel Kraft wrote:
> Hi,
>
> this is a fix for PR fortran/37193 where a statement as
>
> USE m, ONLY: i, j => i
>
> would only allow j as use-associated name and not i because the
> gfc_delete_symtree in module.c:4062 had removed it when j was bound to
> i. The attached patch initializes sym->attr.use_only directly in the
> loop there and thus avoids the removal.
>
> No regressions on GNU/Linux-x86-32. Is this fix ok? I have to admit I
> don't know that part of the code very well so I might well have
> overlooked something.
>
> Cheers,
> Daniel
Committed to 4.3 branch as revision 139936, including Paul Thomas' fix
for PR 36371 backported.
Cheers,
Daniel
--
Done: Arc-Bar-Cav-Sam-Val-Wiz, Dwa-Elf-Gno-Hum-Orc, Law-Neu-Cha, Fem-Mal
To go: Hea-Kni-Mon-Pri-Ran-Rog-Tou
More information about the Fortran
mailing list