This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/44515] improve message for missing ";"
- From: "nicola at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 17 Jan 2011 23:34:42 +0000
- Subject: [Bug c/44515] improve message for missing ";"
- Auto-submitted: auto-generated
- References: <bug-44515-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44515
Nicola Pero <nicola at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nicola at gcc dot gnu.org
--- Comment #5 from Nicola Pero <nicola at gcc dot gnu.org> 2011-01-17 23:34:31 UTC ---
I like Joseph's suggestion - I had been thinking for a while about the C/ObjC
FE
error messages and came to the same conclusion: ideally it should prominently
mention the last valid token (that's how you think about the error, the code is
valid until "bar()", then there is an error), but also mentioning the next,
unexpected token helps you find the error location when you're looking at the
code.
So, shall we go for
error: missing â;â after expression and before â}â
then ?
I guess we'd need to change all the errors in sync.
Thanks