This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/82013] New: better error message for missing semicolon in prototype
- From: "andi-gcc at firstfloor dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 28 Aug 2017 17:56:27 +0000
- Subject: [Bug c/82013] New: better error message for missing semicolon in prototype
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82013
Bug ID: 82013
Summary: better error message for missing semicolon in
prototype
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: andi-gcc at firstfloor dot org
Target Milestone: ---
gcc gives quite poor error messages when forgetting a semicolon after a
prototype (common mistake when cut'n'pasting a function definition into a
header)
It's especially confusing when the prototype is the last in the include file,
because then the errors appear in another file.
As a minimum it should warn about a missing semicolon at the end of a file.
Possibly this could be also used for fix-it, but that's likely more
complicated.