* decl.c (gfc_match_end): Use locus of END when eos is an error.

From-SVN: r91899
This commit is contained in:
Tobias Schlüter 2004-12-08 13:29:44 +01:00 committed by Tobias Schlüter
parent 40f2165e2d
commit 59ce85b543
2 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,8 @@
* resolve.c (resolve_code): Impose correct restrictions on
assigned variable.
* decl.c (gfc_match_end): Use locus of END when eos is an error.
2004-12-02 Steven G. Kargl <kargls@comcast.net>
Paul Brook <paul@codesourcery.com>

View File

@ -2576,8 +2576,8 @@ gfc_match_end (gfc_statement * st)
if (!eos_ok)
{
/* We would have required END [something] */
gfc_error ("%s statement expected at %C",
gfc_ascii_statement (*st));
gfc_error ("%s statement expected at %L",
gfc_ascii_statement (*st), &old_loc);
goto cleanup;
}