This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, fortran] Fix PR 83012, rejects-valid regression with contiguous pointer
- From: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- To: Thomas Koenig <tkoenig at netcologne dot de>
- 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, 17 Nov 2017 20:03:14 +0000
- Subject: Re: [patch, fortran] Fix PR 83012, rejects-valid regression with contiguous pointer
- Authentication-results: sourceware.org; auth=none
- References: <b0ed27bf-07fd-c6d1-9ddc-1c6b94212191@netcologne.de>
Hi Thomas,
This is OK.
Thanks
Paul
On 17 November 2017 at 17:38, Thomas Koenig <tkoenig@netcologne.de> wrote:
> Hello world,
>
> the attached patch fixes the PR by looking at the function interface if
> one exists.
>
> Regression-tested. OK for trunk?
>
> Regards
>
> Thomas
>
> 2017-11-17 Thomas Koenig <tkoenig@gcc.gnu.org>
>
> PR fortran/83012
> * expr.c (gfc_is_simply_contiguous): If a function call through a
> class variable is done through a reference, check the function's
> interface.
>
> 2017-11-17 Thomas Koenig <tkoenig@gcc.gnu.org>
>
> PR fortran/83012
> * gfortran.dg/contiguous_5.f90: New test.
--
"If you can't explain it simply, you don't understand it well enough"
- Albert Einstein