Allow automatics in equivalences
authorMark Eggleston <markeggleston@gcc.gnu.org>
Fri, 16 Aug 2019 10:09:57 +0000 (10:09 +0000)
committerMark Eggleston <markeggleston@gcc.gnu.org>
Fri, 16 Aug 2019 10:09:57 +0000 (10:09 +0000)
commitb323be611b6f25ba36d97f229af7c983125437c9
treee5bdc128d140f87153b626b487731c6ab467265b
parent12f78d8bed049278229b24c9f0b7f97468fee5c5
Allow automatics in equivalences

If a variable with an automatic attribute appears in an
equivalence statement the storage should be allocated on the
stack.

Note: most of this patch was provided by Jeff Law  <law@redhat.com>.

From-SVN: r274565
gcc/fortran/ChangeLog
gcc/fortran/gfortran.h
gcc/fortran/symbol.c
gcc/fortran/trans-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/auto_in_equiv_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/auto_in_equiv_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/auto_in_equiv_3.f90 [new file with mode: 0644]