From mboxrd@z Thu Jan 1 00:00:00 1970 From: michael.scheibler@onevision.de To: gcc-gnats@gcc.gnu.org Subject: libobjc/1727: Invoking methods of instances created with @protocol Date: Sun, 01 Apr 2001 00:00:00 -0000 Message-id: <20010122130015.12338.qmail@sourceware.cygnus.com> X-SW-Source: 2001-q1/msg00589.html List-Id: >Number: 1727 >Category: libobjc >Synopsis: Invoking methods of instances created with @protocol >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Mon Jan 22 05:06:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: michael.scheibler@onevision.de >Release: unknown-1.0 >Organization: >Environment: mingw32-nt-i586 >Description: When I create an instance of my protocol using the statement @protocol(TestProtocol), I can't invoke any method of it. I found out, that the isa pointer is not set correctly. However, if I have an implementation of the protocol inside the same bundle, the problem doesn't occur. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: text/plain; name="compare.m" Content-Disposition: inline; filename="compare.m" #include @protocol TestProtocol - (void) doSomething; @end /** code crashes without this implementation @interface Test : NSObject @end @implementation Test - (void) doSomething { printf("Did Something\n"); } @end **/ int main(int argc, char* argv[]) { Protocol *pr; pr = @protocol(TestProtocol); printf("Protocol name: %s\n", [pr name]); return 0; } >>From nathan@gcc.gnu.org Sun Apr 01 00:00:00 2001 From: nathan@gcc.gnu.org To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: c++/1546 Date: Sun, 01 Apr 2001 00:00:00 -0000 Message-id: <20010110161605.18142.qmail@sourceware.cygnus.com> X-SW-Source: 2001-q1/msg00163.html Content-length: 508 The following reply was made to PR c++/1546; it has been noted by GNATS. From: nathan@gcc.gnu.org To: gcc-gnats@gcc.gnu.org, jrgraham@wesleyan.edu, nobody@gcc.gnu.org Cc: Subject: Re: c++/1546 Date: 10 Jan 2001 16:14:43 -0000 Synopsis: 2.95 compiler barf using vector class State-Changed-From-To: open->analyzed State-Changed-By: nathan State-Changed-When: Wed Jan 10 08:14:42 2001 State-Changed-Why: confirmed as a bug http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=1546&database=gcc >>From bryce@gcc.gnu.org Sun Apr 01 00:00:00 2001 From: bryce@gcc.gnu.org To: apbianco@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: java/1320 Date: Sun, 01 Apr 2001 00:00:00 -0000 Message-id: <20010303014600.26320.qmail@sourceware.cygnus.com> X-SW-Source: 2001-q1/msg01896.html Content-length: 524 The following reply was made to PR java/1320; it has been noted by GNATS. From: bryce@gcc.gnu.org To: apbianco@gcc.gnu.org, gcc-gnats@gcc.gnu.org, osk@hem.passagen.se Cc: Subject: Re: java/1320 Date: 3 Mar 2001 01:36:20 -0000 Synopsis: inner class $finit$ compilation error State-Changed-From-To: open->closed State-Changed-By: bryce State-Changed-When: Fri Mar 2 17:36:19 2001 State-Changed-Why: This is fixed in the gcc 3.0 branch. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=1320&database=gcc