aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/decl.c
diff options
context:
space:
mode:
authorTobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>2004-12-08 13:29:44 +0100
committerTobias Schlüter <tobi@gcc.gnu.org>2004-12-08 13:29:44 +0100
commit59ce85b543446f3df435a09f5212bdcf1ea8128b (patch)
tree0afde7d64017b122d28e2284873d441fa81cd3a0 /gcc/fortran/decl.c
parent40f2165e2de6ad91cd026f154abc32f1be456bd7 (diff)
downloadgcc-59ce85b543446f3df435a09f5212bdcf1ea8128b.zip
gcc-59ce85b543446f3df435a09f5212bdcf1ea8128b.tar.gz
gcc-59ce85b543446f3df435a09f5212bdcf1ea8128b.tar.bz2
* decl.c (gfc_match_end): Use locus of END when eos is an error.
From-SVN: r91899
Diffstat (limited to 'gcc/fortran/decl.c')
-rw-r--r--gcc/fortran/decl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c
index 5f7e846..97b5e1f1 100644
--- a/gcc/fortran/decl.c
+++ b/gcc/fortran/decl.c
@@ -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;
}