aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/resolve.c
diff options
context:
space:
mode:
authorJerry DeLisle <jvdelisle@gcc.gnu.org>2008-05-16 16:44:28 +0000
committerJerry DeLisle <jvdelisle@gcc.gnu.org>2008-05-16 16:44:28 +0000
commitacb388a0cb8503c7ee94a74c725903e539a19115 (patch)
tree6527e06cef13e036e6dae35e43a6daa568e57d2f /gcc/fortran/resolve.c
parentd1325932580a13fea6ce6e257c30e756405d5ac3 (diff)
downloadgcc-acb388a0cb8503c7ee94a74c725903e539a19115.zip
gcc-acb388a0cb8503c7ee94a74c725903e539a19115.tar.gz
gcc-acb388a0cb8503c7ee94a74c725903e539a19115.tar.bz2
re PR fortran/34325 (Wrong error message for syntax error)
2008-05-16 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/34325 * decl.c (match_attr_spec): Check for matching pairs of parenthesis. * expr.c (gfc_specification_expr): Supplement the error message with the type that was found. * resolve.c (gfc_resolve_index): Likewise. * match.c (gfc_match_parens): Clarify error message with "at or before". (gfc_match_do): Check for matching pairs of parenthesis. From-SVN: r135428
Diffstat (limited to 'gcc/fortran/resolve.c')
-rw-r--r--gcc/fortran/resolve.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c
index 6338b06..bf88624 100644
--- a/gcc/fortran/resolve.c
+++ b/gcc/fortran/resolve.c
@@ -3510,8 +3510,8 @@ gfc_resolve_index (gfc_expr *index, int check_scalar)
if (index->ts.type != BT_INTEGER && index->ts.type != BT_REAL)
{
- gfc_error ("Array index at %L must be of INTEGER type",
- &index->where);
+ gfc_error ("Array index at %L must be of INTEGER type, found %s",
+ &index->where, gfc_basic_typename (index->ts.type));
return FAILURE;
}