discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [objc-improvements] Synced in with mainline yet again...


From: Ziemowit Laski
Subject: Re: [objc-improvements] Synced in with mainline yet again...
Date: Thu, 18 Sep 2003 18:51:52 -0700

David,

I'll (hopefully) fix this tomorrow, before we merge to mainline.

--Zem

On Tuesday, Sep 16, 2003, at 13:56 US/Pacific, David Ayers wrote:

Ziemowit Laski wrote:

The objc-improvements-merge-20030912 tag, to be exact. Please try out.


While we are waiting on enlightenment on the contents of the branch :-), I've been hacking away on 'Class <Protocol>'. I'll be posting an RFC with a prospective patch, but it seems the front end could use some cleanup that goes a bit further than C90, but more in a separate post once I'm satisfied with some of the edge cases.

But while setting up the tests for the feature I noticed an ICE on invalid 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

But from what I've seen, there isn't too much handling of the error_mark tree in objc-act.c. I still have to grok the mechanism because I'd expect a lot more of these on many places.

Please let me know if you want me to open a formal bug report.

Cheers,
David



--------------------------------------------------------------
Ziemowit Laski                 1 Infinite Loop, MS 301-2K
Mac OS X Compiler Group        Cupertino, CA USA  95014-2083
Apple Computer, Inc.           +1.408.974.6229  Fax .5477





reply via email to

[Prev in Thread] Current Thread [Next in Thread]