This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug objc/23710] New: objc front-end should not "abort" after erroring out about method definition not in class context


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]