public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
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	[thread overview]
Message-ID: <20010122130015.12338.qmail@sourceware.cygnus.com> (raw)

>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


             reply	other threads:[~2001-04-01  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-01  0:00 michael.scheibler [this message]
2002-09-06  8:48 nicola

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010122130015.12338.qmail@sourceware.cygnus.com \
    --to=michael.scheibler@onevision.de \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).