Enable %LOC as an rvalue with -std=legacy.
authorFritz Reese <fritzoreese@gmail.com>
Tue, 25 Oct 2016 15:27:39 +0000 (15:27 +0000)
committerFritz Reese <foreese@gcc.gnu.org>
Tue, 25 Oct 2016 15:27:39 +0000 (15:27 +0000)
commitcd714e1e56c53aeda0fe365a1daebf217731b42a
treeea11f6a2086413d833a90fb2aec1ec1d5196a654
parent90051c26da7abd0999ce0afdd9471e354009b861
Enable %LOC as an rvalue with -std=legacy.

gcc/fortran/
        * primary.c (gfc_match_rvalue): Match %LOC as LOC with -std=legacy.
        * gfortran.texi: Document.

gcc/testsuite/gfortran.dg/
* dec_loc_rval_1.f90: New test.
        * dec_loc_rval_2.f90: New test.
        * dec_loc_rval_3.f90: New test.

From-SVN: r241519
gcc/fortran/ChangeLog
gcc/fortran/gfortran.texi
gcc/fortran/primary.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/dec_loc_rval_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/dec_loc_rval_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/dec_loc_rval_3.f03 [new file with mode: 0644]