This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36888] New: Error message when forgetting a semicolon after a class definition should be better
- From: "bero at arklinux dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jul 2008 14:09:17 -0000
- Subject: [Bug c++/36888] New: Error message when forgetting a semicolon after a class definition should be better
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Compiling the following code:
1 class a {
2 // lots of stuff here
3 } // <--- actual error is here: missing semicolon
4
5
6 class b {
7 // lots of stuff here
8 };
results in
test.cpp:8: error: multiple types in one declaration
making someone who hasn't been exposed to the error message a lot look for a
problem in the wrong class.
--
Summary: Error message when forgetting a semicolon after a class
definition should be better
Product: gcc
Version: 4.3.1
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bero at arklinux dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36888