This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/44515] improve message for missing ";"


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]