This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34325] Wrong error message for syntax error
- From: "terry at chem dot gu dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jan 2008 23:00:41 -0000
- Subject: [Bug fortran/34325] Wrong error message for syntax error
- References: <bug-34325-14178@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from terry at chem dot gu dot se 2008-01-23 23:00 -------
Actually, with bad parentheses it's easy to generate strange error messages:
do while ((.true.)
1
Error: Invalid character in name at (1)
do while (.true.
1
Error: Unclassifiable statement at (1)
Yes, these are trivial examples. But they demonstrate that new
gfc_match_parens either doesn't work very well, or isn't being called in the
right place.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34325