public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug objc/11661] New: [objc-improvements-branch] function pointers as ivars
@ 2003-07-24 13:58 d dot ayers at inode dot at
  2003-07-24 14:07 ` [Bug objc/11661] " d dot ayers at inode dot at
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: d dot ayers at inode dot at @ 2003-07-24 13:58 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11661

           Summary: [objc-improvements-branch] function pointers as ivars
           Product: gcc
           Version: 3.4
            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,zlaski at apple dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu

Declaring function pointers as instance variables causes an ICE (independent of
the runtime).

The example (I'll try to attach it as a file...):
#include <objc/Object.h>

@interface MyObject : Object
{
  BOOL (*ivar)(id, SEL, id);
}
@end
@implementation MyObject
@end

int main ()
{
  return(0);
}

compiled with:
gccObjCI -fnext-runtime -lobjc fncptrivar.m
will fail, (independent of -fgnu-runtime or -fnext-runtime).  The compiler reports:
fncptrivar.m:5: internal compiler error: tree check: expected identifier_node,
have indirect_ref in add_instance_variable, at objc/objc-act.c:6601

Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.4/specs
Konfiguriert mit: ../gcc/configure --enable-shared --enable-threads=posix
--enable-languages=objc --enable-version-specific-runtime-libs
--program-suffix=ObjCI
Thread model: posix
gcc-Version 3.4 20030722 (experimental)


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2003-12-09 18:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-24 13:58 [Bug objc/11661] New: [objc-improvements-branch] function pointers as ivars d dot ayers at inode dot at
2003-07-24 14:07 ` [Bug objc/11661] " d dot ayers at inode dot at
2003-07-24 14:18 ` [Bug objc/11661] [objc-improvements-branch] ICE on " d dot ayers at inode dot at
2003-07-24 14:23 ` pinskia at physics dot uc dot edu
2003-07-24 14:43 ` pinskia at physics dot uc dot edu
2003-07-24 18:06 ` pinskia at physics dot uc dot edu
2003-07-29 23:10 ` pinskia at physics dot uc dot edu
2003-07-29 23:19 ` zlaski at apple dot com
2003-12-09 18:10 ` dhazeghi at yahoo dot com

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).