Support legacy PARAMETER statements with -std=legacy.
authorFritz O. Reese <fritzoreese@gmail.com>
Thu, 3 Nov 2016 16:00:58 +0000 (16:00 +0000)
committerFritz Reese <foreese@gcc.gnu.org>
Thu, 3 Nov 2016 16:00:58 +0000 (16:00 +0000)
commit35ea947ffabd427908f9fa0b5df56c6fe58176ff
tree4b94c9ccf0d58309cda7b6af4ee09b7212fc57fa
parentc0ae959bedcbeae109608c9a13903407bd9b636e
Support legacy PARAMETER statements with -std=legacy.

gcc/fortran/
* decl.c (gfc_match_parameter): Allow omitted '()' with -std=legacy.
* parse.c (decode_statement): Match "parameter" before assignments.
* gfortran.texi: Document.

gcc/testsuite/gfortran.dg/
* dec_parameter_1.f: New test.
* dec_parameter_2.f90: Likewise.
* dec_parameter_3.f90: Likewise.
* dec_parameter_4.f90: Likewise.

From-SVN: r241823
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/gfortran.texi
gcc/fortran/parse.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/dec_parameter_1.f [new file with mode: 0644]
gcc/testsuite/gfortran.dg/dec_parameter_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/dec_parameter_3.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/dec_parameter_4.f90 [new file with mode: 0644]