This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, fortran] PR34325 Wrong error message for syntax error
- From: FX <fxcoudert at gmail dot com>
- To: Jerry DeLisle <jvdelisle at verizon dot net>
- Cc: Fortran List <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 5 May 2008 06:52:42 +0200
- Subject: Re: [patch, fortran] PR34325 Wrong error message for syntax error
2008-05-04 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.
OK to commit. I think that generally these syntax-error and
diagnostic patches are rather hard to review in depth, as there are
really tons of ways they could do things we can't even imagine on
other invalid-code cases, so I tend to only review them for style,
wording and obvious mistakes; I hope it's OK.
FX
--
François-Xavier Coudert
http://www.homepages.ucl.ac.uk/~uccafco/