public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libobjc/1727: Invoking methods of instances created with @protocol
@ 2002-09-06 8:48 nicola
0 siblings, 0 replies; 2+ messages in thread
From: nicola @ 2002-09-06 8:48 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, michael.scheibler, nicola, nobody
Synopsis: Invoking methods of instances created with @protocol
Responsible-Changed-From-To: unassigned->nicola
Responsible-Changed-By: nicola
Responsible-Changed-When: Fri Sep 6 08:48:41 2002
Responsible-Changed-Why:
I fixed it
State-Changed-From-To: open->closed
State-Changed-By: nicola
State-Changed-When: Fri Sep 6 08:48:41 2002
State-Changed-Why:
Thanks - I fixed this bug in GCC 3.3.
I doubled checked - your testcase now compiles
and runs correctly with GCC 3.3 from CVS,
at least on my ix86/linux-gnu machine.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=1727
^ permalink raw reply [flat|nested] 2+ messages in thread
* libobjc/1727: Invoking methods of instances created with @protocol
@ 2001-04-01 0:00 michael.scheibler
0 siblings, 0 replies; 2+ messages in thread
From: michael.scheibler @ 2001-04-01 0:00 UTC (permalink / raw)
To: gcc-gnats
>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 <Foundation/Foundation.h>
@protocol TestProtocol
- (void) doSomething;
@end
/** code crashes without this implementation
@interface Test : NSObject <TestProtocol>
@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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-09-06 15:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-06 8:48 libobjc/1727: Invoking methods of instances created with @protocol nicola
-- strict thread matches above, loose matches on Subject: below --
2001-04-01 0:00 michael.scheibler
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).