This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran, OOP] PR 46849: [OOP] MODULE PROCEDURE resolution does not work in BLOCK or SELECT TYPE
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Janus Weil <janus at gcc dot gnu dot org>
- Cc: gfortran <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 16 Dec 2010 16:02:17 -0800
- Subject: Re: [Patch, Fortran, OOP] PR 46849: [OOP] MODULE PROCEDURE resolution does not work in BLOCK or SELECT TYPE
- References: <AANLkTinCNiXiHO5oFQFwsppJQzq218MnGcM0rp5X25nz@mail.gmail.com>
On Fri, Dec 17, 2010 at 12:21:40AM +0100, Janus Weil wrote:
>
> the attached patch fixes an issue with BLOCK namespaces and symbol
> resolution: In certain cases (e.g. a procedure being passed as an
> actual argument to some other procedure call inside a BLOCK statement)
> resolving the procedure symbol fails, because the symbol is being
> created in the local BLOCK namespace (at parsing stage), since it is
> not known yet that the procedure will be defined in the parent
> PROGRAM/MODULE namespace.
>
> The patch fixes this at resolution stage, by removing the extra symbol
> from the local BLOCK namespace, in a similar way as it was already
> being done for generics (as proposed by Tobias). It is regtested on
> x86_64-unknown-linux-gnu. Ok for trunk?
>
OK.
--
Steve