This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]