From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 119180 invoked by alias); 21 Apr 2019 16:03:01 -0000 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 Received: (qmail 119141 invoked by uid 89); 21 Apr 2019 16:03:01 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,KAM_NUMSUBJECT autolearn=no version=3.3.1 spammy=HX-Languages-Length:599, H*f:sk:9E0F69D, Did, H*f:sk:D92CD96 X-HELO: troutmask.apl.washington.edu Received: from troutmask.apl.washington.edu (HELO troutmask.apl.washington.edu) (128.95.76.21) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 21 Apr 2019 16:03:00 +0000 Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.15.2/8.15.2) with ESMTPS id x3LG2wC9008015 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 21 Apr 2019 09:02:58 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.15.2/8.15.2/Submit) id x3LG2uLo008014; Sun, 21 Apr 2019 09:02:56 -0700 (PDT) (envelope-from sgk) Date: Sun, 21 Apr 2019 18:03:00 -0000 From: Steve Kargl To: "Dominique =?iso-8859-1?Q?d'Humi=E8res?=" Cc: gfortran , gcc-patches Subject: Re: [PATCH] PR fortran/90166 -- check F2018:C1547 Message-ID: <20190421160256.GA7959@troutmask.apl.washington.edu> Reply-To: sgk@troutmask.apl.washington.edu References: <9E0F69D4-B2B3-4B76-B112-F493AE5ED045@lps.ens.fr> <20190420165734.GA3285@troutmask.apl.washington.edu> <20190420191846.GA3913@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.11.2 (2019-01-07) X-SW-Source: 2019-04/txt/msg00847.txt.bz2 On Sat, Apr 20, 2019 at 09:51:11PM +0200, Dominique d'Humières wrote: > OK I missed the previous error. However I am still puzzled by (2): > > + > +found outside of a module > Why are you puzzled? Did you read the patch? The entire error message is + gfc_error ("MODULE prefix at %C found outside of a module, " + "submodule, or interface"); In program foo contains module subroutine foo end subroutine foo end program foo The "MODULE prefix" attached to "subroutine foo" is found outside of a module, a submodule, or interface. -- Steve