[PATCH] Automatics in equivalence statements
Steve Kargl
sgk@troutmask.apl.washington.edu
Fri Jun 21 14:10:00 GMT 2019
On Fri, Jun 21, 2019 at 02:31:51PM +0100, Mark Eggleston wrote:
> Currently variables with the AUTOMATIC attribute can not appear in an
> EQUIVALENCE statement. However its counterpart, STATIC, can be used in
> an EQUIVALENCE statement.
>
> Where there is a clear conflict in the attributes of variables in an
> EQUIVALENCE statement an error message will be issued as is currently
> the case.
>
> If there is no conflict e.g. a variable with a AUTOMATIC attribute and a
> variable(s) without attributes all variables in the EQUIVALENCE will
> become AUTOMATIC.
>
> Note: most of this patch was written by Jeff Law <law@redhat.com>
>
> Please review.
>
> ChangeLogs:
>
> gcc/fortran
>
>    Jeff Law <law@redhat.com>
>    Mark Eggleston <mark.eggleston@codethink.com>
>
> Â Â Â * gfortran.h: Add check_conflict declaration.
This is wrong. By convention a routine that is not static
has the gfc_ prefix.
--
Steve
20170425 https://www.youtube.com/watch?v=VWUpyCsUKR4
20161221 https://www.youtube.com/watch?v=IbCHE-hONow
More information about the Fortran
mailing list