[Patch, fortran] PR47203 Use of module with same name as subroutine

Steve Kargl sgk@troutmask.apl.washington.edu
Tue Jan 8 21:47:00 GMT 2013


On Tue, Jan 08, 2013 at 10:06:17PM +0100, Mikael Morin wrote:
>
> a small, unexciting bug.
> For the case:
> 
>     subroutine m()
>        use m
>     end subroutine m
> 
> the USE statement is rejected, but it is not if the subroutine is contained.
> In the latter case, the namespace of the symbol of the subroutine is the 
> parent namespace, which confuses the error condition in check_for_ambiguous.
> 
> Regression tested on x86_64-unknown-linux-gnu. OK for trunk?
> 

OK.  Note, RM sent a status report stating that
trunk was closed except for regression and doc
fixes.  Other changes (may) need RM approval.

-- 
Steve



More information about the Gcc-patches mailing list