From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 55244 invoked by alias); 5 Dec 2015 16:07:24 -0000 Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: fortran-owner@gcc.gnu.org Received: (qmail 55117 invoked by uid 89); 5 Dec 2015 16:07:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 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 (AES256-GCM-SHA384 encrypted) ESMTPS; Sat, 05 Dec 2015 16:07:23 +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 tB5G7LOe008843 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 5 Dec 2015 08:07:21 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.15.2/8.15.2/Submit) id tB5G7KYi008842; Sat, 5 Dec 2015 08:07:20 -0800 (PST) (envelope-from sgk) Date: Sat, 05 Dec 2015 16:07:00 -0000 From: Steve Kargl To: Paul Richard Thomas Cc: "fortran@gcc.gnu.org" Subject: Re: [Patch, fortran] PR68534 - No error on mismatch in number of arguments between submodule and module interface Message-ID: <20151205160720.GA8826@troutmask.apl.washington.edu> References: <20151128161940.GA97246@troutmask.apl.washington.edu> <20151203060233.GA62024@troutmask.apl.washington.edu> <20151203062630.GA62157@troutmask.apl.washington.edu> <20151203064341.GA62254@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-IsSubscribed: yes X-SW-Source: 2015-12/txt/msg00044.txt.bz2 On Sat, Dec 05, 2015 at 04:20:54PM +0100, Paul Richard Thomas wrote: > > Going back through my notes on the original submodule patch, I ran > into all sorts of problems with extraneous errors and ICEs if I tried > to avoid the ugliness. I spent some time today trying to overcome > these problems but got nowhere. > > The cause of the segfault, I believe, was an error: 'sym' being used > instead of 'progname': Could you please try the attached patch when > you have a moment. > Yes, I'll try the patch shortly. When I said that it was ugly (if one returned MATCH_ERROR or MATCH_NO), I did not mean for you to waste time looking into using either return value. Sorry if I caused confusion. I tried both return values, and I think the matchers get into such a confused state that it is hopeless to try to recover. -- Steve