Take the following example: +(void)C{} void f(void){}
--- we get the following message: t7.m:1: fatal error: method definition not in class context compilation terminated. We should be able to be able to continue parse/compiling after this error. This is not a regression and the obj-c++ front-end works correctly. -- Summary: objc front-end should not "abort" after erroring out about method definition not in class context Product: gcc Version: 4.1.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P2 Component: objc AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23710