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: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 28 Sep 2017 19:39:40 +0000
- Subject: [Bug c/44515] improve message for missing ";"
- Auto-submitted: auto-generated
- References: <bug-44515-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44515
--- Comment #7 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
The patch kit I proposed here:
https://gcc.gnu.org/ml/gcc-patches/2017-09/msg01744.html
and adds a fix-it hint and improves the location, making the successor token be
a secondary location within the diagnostic:
t.c: In function ‘foo’:
t.c:4:8: error: expected ‘;’ before ‘}’ token
bar()
^
;
t.c:7:1:
}
~
It doesn't change the wording though.