decl.c (gfc_match_end): Also check for construct name in END FORALL and END WERE...
authorTobias Schlüter <tobi@gcc.gnu.org>
Thu, 12 Apr 2007 18:07:09 +0000 (20:07 +0200)
committerTobias Schlüter <tobi@gcc.gnu.org>
Thu, 12 Apr 2007 18:07:09 +0000 (20:07 +0200)
commit690af37922ff3399d545d03196867ad1424c14aa
treecd6e32a845d732e339b5c424410684c412ab5248
parent8cb6400cdaea428d965f6a22b39e4b7d2acff880
decl.c (gfc_match_end): Also check for construct name in END FORALL and END WERE statements.

        fortran/31471
fortran/
* decl.c (gfc_match_end): Also check for construct name in END
FORALL and END WERE statements.
* match.c (match_case_eos): Use uppercase for statement name in
error message.
(match_elsewhere): Construct name may appear iff construct has a
name.
testsuite/
* gfortran.dg/block_name_1.f90: New.
* gfortran.dg/block_name_2.f90: New.

From-SVN: r123758
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/match.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/block_name_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/block_name_2.f90 [new file with mode: 0644]