From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11307 invoked by alias); 17 Jan 2011 23:34:47 -0000 Received: (qmail 11187 invoked by uid 22791); 17 Jan 2011 23:34:46 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 17 Jan 2011 23:34:43 +0000 From: "nicola at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/44515] improve message for missing ";" X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: nicola at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Date: Tue, 18 Jan 2011 00:11:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-01/txt/msg01733.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D44515 Nicola Pero changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nicola at gcc dot gnu.org --- Comment #5 from Nicola Pero 2011-01-17 23:3= 4:31 UTC --- I like Joseph's suggestion - I had been thinking for a while about the C/Ob= jC FE=20 error messages and came to the same conclusion: ideally it should prominent= ly=20 mention the last valid token (that's how you think about the error, the cod= e is=20 valid until "bar()", then there is an error), but also mentioning the next,= =20 unexpected token helps you find the error location when you're looking at t= he=20 code. So, shall we go for=20 error: missing =E2=80=98;=E2=80=99 after expression and before =E2=80=98}= =E2=80=99 then ? I guess we'd need to change all the errors in sync. Thanks