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