This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, fortran] PR68534 - No error on mismatch in number of arguments between submodule and module interface
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>
- Date: Sat, 5 Dec 2015 08:07:20 -0800
- Subject: Re: [Patch, fortran] PR68534 - No error on mismatch in number of arguments between submodule and module interface
- Authentication-results: sourceware.org; auth=none
- References: <CAGkQGiJOT-0-PuPJa+Sk_Wm61MT1hrjNpP=tBztpy1KBV2yO=g at mail dot gmail dot com> <20151128161940 dot GA97246 at troutmask dot apl dot washington dot edu> <CAGkQGi+H+Mn-uP-QViL8=eXwWEK-i9Bz6xPhdN6ipKnL=G5yYg at mail dot gmail dot com> <20151203060233 dot GA62024 at troutmask dot apl dot washington dot edu> <20151203062630 dot GA62157 at troutmask dot apl dot washington dot edu> <20151203064341 dot GA62254 at troutmask dot apl dot washington dot edu> <CAGkQGiLhWmeCGXnGn_2_h8tWNQREq6Mt=F4Dc5SqJdoHA0pppw at mail dot gmail dot com>
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