diff options
author | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2008-05-16 16:44:28 +0000 |
---|---|---|
committer | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2008-05-16 16:44:28 +0000 |
commit | acb388a0cb8503c7ee94a74c725903e539a19115 (patch) | |
tree | 6527e06cef13e036e6dae35e43a6daa568e57d2f /gcc/fortran/expr.c | |
parent | d1325932580a13fea6ce6e257c30e756405d5ac3 (diff) | |
download | gcc-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/expr.c')
-rw-r--r-- | gcc/fortran/expr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/fortran/expr.c b/gcc/fortran/expr.c index 87ea9e9..e6c1e4e 100644 --- a/gcc/fortran/expr.c +++ b/gcc/fortran/expr.c @@ -2573,7 +2573,8 @@ gfc_specification_expr (gfc_expr *e) if (e->ts.type != BT_INTEGER) { - gfc_error ("Expression at %L must be of INTEGER type", &e->where); + gfc_error ("Expression at %L must be of INTEGER type, found %s", + &e->where, gfc_basic_typename (e->ts.type)); return FAILURE; } |