This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [rfc] rewrite of local equivalences
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: Richard Henderson <rth at twiddle dot net>
- Cc: fortran at gcc dot gnu dot org, jason at redhat dot com
- Date: Thu, 27 Nov 2003 21:19:55 +0100
- Subject: Re: [rfc] rewrite of local equivalences
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <20031127042950.GA581@twiddle.net>
Richard Henderson wrote:
I'm somewhat concerned that there are almost no test cases for
equivalence in the test suite, so I have no idea what happens
here for corner cases.
Indeed - g77 contained an error for years dealing with the following code:
DIMENSION A(10), B(10)
EQUIVALENCE(A(5),B(10))
i.e., where the start of the equivalence wasn't with the first item in
the list, but the second. This is also the major bug to look out for if
you think "equivalences are just like common blocks".
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://gcc.gnu.org/fortran/ (under construction)