From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16957 invoked by alias); 8 Jan 2013 21:47:59 -0000 Received: (qmail 16939 invoked by uid 22791); 8 Jan 2013 21:47:59 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from troutmask.apl.washington.edu (HELO troutmask.apl.washington.edu) (128.95.76.21) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 08 Jan 2013 21:47:52 +0000 Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.5/8.14.5) with ESMTP id r08LlpaY025185; Tue, 8 Jan 2013 13:47:51 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.5/8.14.5/Submit) id r08Llp5i025184; Tue, 8 Jan 2013 13:47:51 -0800 (PST) (envelope-from sgk) Date: Tue, 08 Jan 2013 21:47:00 -0000 From: Steve Kargl To: Mikael Morin Cc: gfortran , gcc-patches Subject: Re: [Patch, fortran] PR47203 Use of module with same name as subroutine Message-ID: <20130108214751.GA25155@troutmask.apl.washington.edu> References: <50EC8A49.5080802@sfr.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50EC8A49.5080802@sfr.fr> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2013-01/txt/msg00451.txt.bz2 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