This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug objc/12309] New: [objc-imp] ICE on @implementation after undefined protocol declaration
- From: "d dot ayers at inode dot at" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Sep 2003 00:53:04 -0000
- Subject: [Bug objc/12309] New: [objc-imp] ICE on @implementation after undefined protocol declaration
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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