This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: fortran regression [was Re: Results for egcs-971207 on m68k-next-nextstep3]
- To: egcs at cygnus dot com
- Subject: Re: fortran regression [was Re: Results for egcs-971207 on m68k-next-nextstep3]
- From: Craig Burley <burley at gnu dot org>
- Date: Fri, 12 Dec 1997 20:15:25 -0500 (EST)
- Reply-To: egcs at cygnus dot com
> Craig> Lots of old code uses this construct (called "assumed
> Craig> arrays"), plus some new code as well.
>
>Given that we don't do f90 :-(, isn't the `old' code is what just uses
>dimensions of `(1)' with this the new-fangled way? :-/
Ok, "REAL A(1)" is the old-old way, "REAL A(*)" is the old way,
"REAL A(N)" is the new way, "REAL, DIMENSION(N) :: A" is the
new-new way. :)
By this I mean that assumed-size arrays are often trivially
replacable by the semantically superior adjustable arrays
("REAL A(N)"), though of course before either existed,
people often used "REAL A(1)". Though there are still
(in F77 anyway) valid uses of assumed-sized arrays that
are not easily replaced by adjustable arrays.
tq vm, (burley)