This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [PATCH] PR fortran/85780 -- alternate return and BIND(C) conflict
- From: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- To: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 25 Jan 2019 07:11:20 +0000
- Subject: Re: [PATCH] PR fortran/85780 -- alternate return and BIND(C) conflict
- References: <20190125014939.GA89513@troutmask.apl.washington.edu>
Hi Steve,
That's OK. Thanks
Paul
On Fri, 25 Jan 2019 at 01:50, Steve Kargl
<sgk@troutmask.apl.washington.edu> wrote:
>
> All,
>
> My original patch for this PR simply fixed an ICE, which
> then allowed the code to compile. In reality, an alternate
> return is not ISO C interoperable, so an error message is
> a more appropriate response. So, I re-opened the PR.
>
> The attached patch has been tested on x86_64-*-freebsd.
> OK to commit?
>
> 2019-01-24 Steven G. Kargl <kargl@gcc.gnu.org>
>
> PR fortran/85780
> * decl.c (gfc_match_subroutine): Check for conflict between BIND(C)
> and alternative return.
>
> 2019-01-24 Steven G. Kargl <kargl@gcc.gnu.org>
>
> PR fortran/85780
> * gfortran.dg/pr85780.f90: Update testcase for error message.
>
> --
> Steve
--
"If you can't explain it simply, you don't understand it well enough"
- Albert Einstein