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] objc front-end should not "abort" after erroring out about method definition not in class context



------- Comment #3 from nicola at gcc dot gnu dot org  2010-09-21 20:47 -------
Subject: Bug 23710

Author: nicola
Date: Tue Sep 21 20:47:04 2010
New Revision: 164497

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=164497
Log:
PR objc/23710
In gcc/:
        * c-family/c-common.h (objc_start_method_definition): Return bool
        instead of void.
        * c-family/stub-objc.c (objc_start_method_definition): Return bool
        instead of void.
        * c-parser.c (c_parser_objc_method_definition): Check the return
        value of objc_start_method_definition and if false is returned,
        parse the method definition but emit no code.
In gcc/objc/:
        * objc-act.c (objc_start_method_definition): Do not abort upon a
        'method definition not in @implementation context' error.  Return
        'false' instead.
In gcc/testsuite/:
       * objc.dg/invalid-method-1.m: New.

Added:
    trunk/gcc/testsuite/objc.dg/invalid-method-1.m
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-family/c-common.h
    trunk/gcc/c-family/stub-objc.c
    trunk/gcc/c-parser.c
    trunk/gcc/objc/ChangeLog
    trunk/gcc/objc/objc-act.c
    trunk/gcc/testsuite/ChangeLog


-- 


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]