This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix equivalence handling (PRs fortran/18833, fortran/20850)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]