public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug objc/23710] objc front-end should not "abort" after erroring out about method definition not in class context
       [not found] <bug-23710-6528@http.gcc.gnu.org/bugzilla/>
@ 2010-09-18 23:53 ` nicola at gcc dot gnu dot org
  2010-09-21 20:47 ` nicola at gcc dot gnu dot org
  2010-09-21 20:48 ` nicola at gcc dot gnu dot org
  2 siblings, 0 replies; 6+ messages in thread
From: nicola at gcc dot gnu dot org @ 2010-09-18 23:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from nicola at gcc dot gnu dot org  2010-09-18 23:52 -------
I submitted a patch to fix this.

Thanks


-- 

nicola at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |nicola at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2006-03-05 03:54:26         |2010-09-18 23:52:59
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23710


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug objc/23710] objc front-end should not "abort" after erroring out about method definition not in class context
       [not found] <bug-23710-6528@http.gcc.gnu.org/bugzilla/>
  2010-09-18 23:53 ` [Bug objc/23710] objc front-end should not "abort" after erroring out about method definition not in class context nicola at gcc dot gnu dot org
@ 2010-09-21 20:47 ` nicola at gcc dot gnu dot org
  2010-09-21 20:48 ` nicola at gcc dot gnu dot org
  2 siblings, 0 replies; 6+ messages in thread
From: nicola at gcc dot gnu dot org @ 2010-09-21 20:47 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug objc/23710] objc front-end should not "abort" after erroring out about method definition not in class context
       [not found] <bug-23710-6528@http.gcc.gnu.org/bugzilla/>
  2010-09-18 23:53 ` [Bug objc/23710] objc front-end should not "abort" after erroring out about method definition not in class context nicola at gcc dot gnu dot org
  2010-09-21 20:47 ` nicola at gcc dot gnu dot org
@ 2010-09-21 20:48 ` nicola at gcc dot gnu dot org
  2 siblings, 0 replies; 6+ messages in thread
From: nicola at gcc dot gnu dot org @ 2010-09-21 20:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from nicola at gcc dot gnu dot org  2010-09-21 20:48 -------
Fix committed to trunk.

Thanks


-- 

nicola at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23710


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug objc/23710] objc front-end should not "abort" after erroring out about method definition not in class context
  2005-09-03  4:07 [Bug objc/23710] New: " pinskia at gcc dot gnu dot org
  2005-09-03  4:08 ` [Bug objc/23710] " pinskia at gcc dot gnu dot org
  2005-09-05 14:46 ` pinskia at gcc dot gnu dot org
@ 2005-09-05 14:49 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-05 14:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-05 14:49 -------
Confirmed, a better testcase is:
+(void)C{}

void f(a){}

---
So that there is an error after the method definition.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
      Known to fail|3.3 4.1.0                   |3.3 4.1.0 2.95.3
   Last reconfirmed|0000-00-00 00:00:00         |2005-09-05 14:49:14
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23710


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug objc/23710] objc front-end should not "abort" after erroring out about method definition not in class context
  2005-09-03  4:07 [Bug objc/23710] New: " pinskia at gcc dot gnu dot org
  2005-09-03  4:08 ` [Bug objc/23710] " pinskia at gcc dot gnu dot org
@ 2005-09-05 14:46 ` pinskia at gcc dot gnu dot org
  2005-09-05 14:49 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-05 14:46 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23710


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug objc/23710] objc front-end should not "abort" after erroring out about method definition not in class context
  2005-09-03  4:07 [Bug objc/23710] New: " pinskia at gcc dot gnu dot org
@ 2005-09-03  4:08 ` pinskia at gcc dot gnu dot org
  2005-09-05 14:46 ` pinskia at gcc dot gnu dot org
  2005-09-05 14:49 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-03  4:08 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |3.3 4.1.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23710


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-09-21 20:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-23710-6528@http.gcc.gnu.org/bugzilla/>
2010-09-18 23:53 ` [Bug objc/23710] objc front-end should not "abort" after erroring out about method definition not in class context nicola at gcc dot gnu dot org
2010-09-21 20:47 ` nicola at gcc dot gnu dot org
2010-09-21 20:48 ` nicola at gcc dot gnu dot org
2005-09-03  4:07 [Bug objc/23710] New: " pinskia at gcc dot gnu dot org
2005-09-03  4:08 ` [Bug objc/23710] " pinskia at gcc dot gnu dot org
2005-09-05 14:46 ` pinskia at gcc dot gnu dot org
2005-09-05 14:49 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).