public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug objc/12309] New: [objc-imp] ICE on @implementation after undefined protocol declaration
@ 2003-09-17  2:43 d dot ayers at inode dot at
  2003-09-17  2:59 ` [Bug objc/12309] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: d dot ayers at inode dot at @ 2003-09-17  2:43 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: [objc-imp] ICE on @implementation after undefined
                    protocol declaration
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: objc
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: d dot ayers at inode dot at
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: *-*-*
GCC target triplet: *-*-*

When compiling the @implementation of a class that declares to implement a
protocol which hasn't been defined, an ICE occurs dur to the lack of the
error_mark handling.
Example code:
---------------------------
#include <objc/objc.h>

@interface MyClass <UndefinedProtocol>
@end

@implementation MyClass
+(Class)class
{
  return self;
}
@end
----------------------------
=>
QuickTest.m:3: error: cannot find protocol declaration for 
`UndefinedProtocol'
QuickTest.m: In function `+[MyClass class]':

QuickTest.m:8: internal compiler error: tree check: expected tree_list, 
have error_mark in lookup_method_in_protocol_list, at objc/objc-act.c:587


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

* [Bug objc/12309] [objc-imp] ICE on @implementation after undefined protocol declaration
  2003-09-17  2:43 [Bug objc/12309] New: [objc-imp] ICE on @implementation after undefined protocol declaration d dot ayers at inode dot at
@ 2003-09-17  2:59 ` pinskia at gcc dot gnu dot org
  2003-09-19 23:05 ` zlaski at apple dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-17  2:59 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |error-recovery, ice-on-
                   |                            |invalid-code


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

* [Bug objc/12309] [objc-imp] ICE on @implementation after undefined protocol declaration
  2003-09-17  2:43 [Bug objc/12309] New: [objc-imp] ICE on @implementation after undefined protocol declaration d dot ayers at inode dot at
  2003-09-17  2:59 ` [Bug objc/12309] " pinskia at gcc dot gnu dot org
@ 2003-09-19 23:05 ` zlaski at apple dot com
  2003-09-19 23:44 ` cvs-commit at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: zlaski at apple dot com @ 2003-09-19 23:05 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From zlaski at apple dot com  2003-09-19 22:25 -------
Created an attachment (id=4784)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4784&action=view)
Fix + test case

I will commit this to objc-improvements-branch.


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

* [Bug objc/12309] [objc-imp] ICE on @implementation after undefined protocol declaration
  2003-09-17  2:43 [Bug objc/12309] New: [objc-imp] ICE on @implementation after undefined protocol declaration d dot ayers at inode dot at
  2003-09-17  2:59 ` [Bug objc/12309] " pinskia at gcc dot gnu dot org
  2003-09-19 23:05 ` zlaski at apple dot com
@ 2003-09-19 23:44 ` cvs-commit at gcc dot gnu dot org
  2003-09-20  0:21 ` zlaski at apple dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-09-19 23:44 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-09-19 23:05 -------
Subject: Bug 12309

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	objc-improvements-branch
Changes by:	zlaski@gcc.gnu.org	2003-09-19 23:05:36

Modified files:
	gcc            : ChangeLog 
	gcc/testsuite  : ChangeLog 
	gcc/objc       : objc-act.c 
Added files:
	gcc/testsuite/objc.dg: method-12.m missing-proto-3.m 

Log message:
	[gcc]
	2003-09-19  Ziemowit Laski  <zlaski@apple.com>
	
	PR objc/12309
	* objc/objc-act.c (lookup_and_install_protocols): Exclude missing
	protocols from list instead of returning error_mark_node.
	
	[gcc/testsuite]
	2003-09-19  Ziemowit Laski  <zlaski@apple.com>
	
	PR objc/12262
	* objc.dg/method-12.m: New test.
	PR objc/12309
	* objc.dg/missing-proto-3.m: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=objc-improvements-branch&r1=2.424.2.4&r2=2.424.2.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=objc-improvements-branch&r1=1.2857.2.4&r2=1.2857.2.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/objc/objc-act.c.diff?cvsroot=gcc&only_with_tag=objc-improvements-branch&r1=1.179.2.13&r2=1.179.2.14
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/objc.dg/method-12.m.diff?cvsroot=gcc&only_with_tag=objc-improvements-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/objc.dg/missing-proto-3.m.diff?cvsroot=gcc&only_with_tag=objc-improvements-branch&r1=NONE&r2=1.1.2.1


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

* [Bug objc/12309] [objc-imp] ICE on @implementation after undefined protocol declaration
  2003-09-17  2:43 [Bug objc/12309] New: [objc-imp] ICE on @implementation after undefined protocol declaration d dot ayers at inode dot at
                   ` (2 preceding siblings ...)
  2003-09-19 23:44 ` cvs-commit at gcc dot gnu dot org
@ 2003-09-20  0:21 ` zlaski at apple dot com
  2003-09-20  2:06 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: zlaski at apple dot com @ 2003-09-20  0:21 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


zlaski at apple dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zlaski at apple dot com


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

* [Bug objc/12309] [objc-imp] ICE on @implementation after undefined protocol declaration
  2003-09-17  2:43 [Bug objc/12309] New: [objc-imp] ICE on @implementation after undefined protocol declaration d dot ayers at inode dot at
                   ` (3 preceding siblings ...)
  2003-09-20  0:21 ` zlaski at apple dot com
@ 2003-09-20  2:06 ` pinskia at gcc dot gnu dot org
  2003-09-25  3:02 ` zlaski at apple dot com
  2003-12-09 18:28 ` dhazeghi at yahoo dot com
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-20  2:06 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

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


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-09-20 01:22 -------
Fixed on the branch.


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

* [Bug objc/12309] [objc-imp] ICE on @implementation after undefined protocol declaration
  2003-09-17  2:43 [Bug objc/12309] New: [objc-imp] ICE on @implementation after undefined protocol declaration d dot ayers at inode dot at
                   ` (4 preceding siblings ...)
  2003-09-20  2:06 ` pinskia at gcc dot gnu dot org
@ 2003-09-25  3:02 ` zlaski at apple dot com
  2003-12-09 18:28 ` dhazeghi at yahoo dot com
  6 siblings, 0 replies; 8+ messages in thread
From: zlaski at apple dot com @ 2003-09-25  3:02 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From zlaski at apple dot com  2003-09-25 01:42 -------
Fix merged to mainline.


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

* [Bug objc/12309] [objc-imp] ICE on @implementation after undefined protocol declaration
  2003-09-17  2:43 [Bug objc/12309] New: [objc-imp] ICE on @implementation after undefined protocol declaration d dot ayers at inode dot at
                   ` (5 preceding siblings ...)
  2003-09-25  3:02 ` zlaski at apple dot com
@ 2003-12-09 18:28 ` dhazeghi at yahoo dot com
  6 siblings, 0 replies; 8+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-12-09 18:28 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |3.4


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


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

end of thread, other threads:[~2003-12-09 18:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-17  2:43 [Bug objc/12309] New: [objc-imp] ICE on @implementation after undefined protocol declaration d dot ayers at inode dot at
2003-09-17  2:59 ` [Bug objc/12309] " pinskia at gcc dot gnu dot org
2003-09-19 23:05 ` zlaski at apple dot com
2003-09-19 23:44 ` cvs-commit at gcc dot gnu dot org
2003-09-20  0:21 ` zlaski at apple dot com
2003-09-20  2:06 ` pinskia at gcc dot gnu dot org
2003-09-25  3:02 ` zlaski at apple dot com
2003-12-09 18:28 ` dhazeghi at yahoo dot com

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