This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix equivalence handling (PRs fortran/18833, fortran/20850)
- From: Steven Bosscher <stevenb at suse dot de>
- To: fortran at gcc dot gnu dot org, Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 6 Aug 2005 00:52:26 +0200
- Subject: Re: [PATCH] Fix equivalence handling (PRs fortran/18833, fortran/20850)
- References: <20050725210553.GB30077@devserv.devel.redhat.com>
On Monday 25 July 2005 23:05, Jakub Jelinek wrote:
> PR fortran/18833
> PR fortran/20850
> * primary.c (match_varspec): If equiv_flag, don't look at sym's
> attributes, call gfc_Match_array_ref up to twice and don't do any
> substring or component processing.
> * resolve.c (resolve_equivalence): Transform REF_ARRAY into
> REF_SUBSTRING or nothing if needed. Check that substrings
> don't have zero length.
> * gfortran.dg/equiv_1.f90: New test.
> * gfortran.dg/equiv_2.f90: New test.
> * gfortran.fortran-torture/execute/equiv_2.f90: New test.
> * gfortran.fortran-torture/execute/equiv_3.f90: New test.
> * gfortran.fortran-torture/execute/equiv_4.f90: New test.
This looks OK.
Gr.
Steven