This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug objc/23710] New: objc front-end should not "abort" after erroring out about method definition not in class context
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Sep 2005 04:07:39 -0000
- Subject: [Bug objc/23710] New: objc front-end should not "abort" after erroring out about method definition not in class context
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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