re PR fortran/90988 (Wrong error message with variables named "PUBLIC*")
authorSteven G. Kargl <kargl@gcc.gnu.org>
Wed, 26 Jun 2019 04:31:14 +0000 (04:31 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Wed, 26 Jun 2019 04:31:14 +0000 (04:31 +0000)
commitb48826985b8b0bba790688ebe717cf626019a415
treedcd0994bcf951cec4155a3ba7327d8e8393e431a
parent07525dad06aaaf4c321f386528d8357a55a67b96
re PR fortran/90988 (Wrong error message with variables named "PUBLIC*")

2019-06-24  Steven G. Kargl  <kargl@gcc.gnu.org>

PR Fortran/90988
* decl.c (access_attr_decl): Use temporary variable to reduce
unreadability of code.  Normalize jumping to return.
(gfc_match_protected): Fix parsing error.  Add comments to
explain code.  Remove dead code.
(gfc_match_private): Use temporary variable to reduce unreadability
of code. Fix parsing error.  Move code to test for blank PRIVATE.
Remove dead code.
(gfc_match_public): Move code to test for blank PUBLIC.  Fix
parsing error.  Remove dead code.

2019-06-24  Steven G. Kargl  <kargl@gcc.gnu.org>

PR Fortran/90988
* gfortran.dg/pr90988_1.f90: New test.
* gfortran.dg/pr90988_2.f90: Ditto.
* gfortran.dg/pr90988_3.f90: Ditto.

From-SVN: r272667
gcc/fortran/decl.c
gcc/testsuite/gfortran.dg/pr90988_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr90988_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr90988_3.f90 [new file with mode: 0644]