[Patch, Fortran, OOP] PR 46849: [OOP] MODULE PROCEDURE resolution does not work in BLOCK or SELECT TYPE

Janus Weil janus@gcc.gnu.org
Fri Dec 17 12:52:00 GMT 2010


2010/12/17 Steve Kargl <sgk@troutmask.apl.washington.edu>:
> 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.

Thanks, Steve. Committed as r167978.

Cheers,
Janus



More information about the Gcc-patches mailing list