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

* [Bug objc/11661] [objc-improvements-branch] function pointers as ivars
  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 ` 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
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: d dot ayers at inode dot at @ 2003-07-24 14:07 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



------- Additional Comments From d dot ayers at inode dot at  2003-07-24 14:07 -------
Created an attachment (id=4474)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4474&action=view)
Test to reproduce ICE on function pointers as instance variables

compile with:
gccObjCI -fnext-runtime -lobjc fncptrivar.m
or
gccObjCI -fgnu-runtime -lobjc fncptrivar.m


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

* [Bug objc/11661] [objc-improvements-branch] ICE on function pointers as ivars
  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 ` d dot ayers at inode dot at
  2003-07-24 14:23 ` pinskia at physics dot uc dot edu
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: d dot ayers at inode dot at @ 2003-07-24 14:18 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


d dot ayers at inode dot at changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |d dot ayers at inode dot at
            Summary|[objc-improvements-branch]  |[objc-improvements-branch]
                   |function pointers as ivars  |ICE on function pointers as
                   |                            |ivars


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

* [Bug objc/11661] [objc-improvements-branch] ICE on function pointers as ivars
  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
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-24 14:23 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


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical
           Keywords|                            |ice-on-valid-code
           Priority|P2                          |P3
   Target Milestone|3.4                         |---
            Version|3.4                         |unknown


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-24 14:23 -------
This does not fail with Apple's 3.3:
gcc version 3.3 20030304 (Apple Computer, Inc. build 1409)
So it looks like a merge problem.


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

* [Bug objc/11661] [objc-improvements-branch] ICE on function pointers as ivars
  2003-07-24 13:58 [Bug objc/11661] New: [objc-improvements-branch] function pointers as ivars d dot ayers at inode dot at
                   ` (2 preceding siblings ...)
  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
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-24 14:43 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


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1


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

* [Bug objc/11661] [objc-improvements-branch] ICE on function pointers as ivars
  2003-07-24 13:58 [Bug objc/11661] New: [objc-improvements-branch] function pointers as ivars d dot ayers at inode dot at
                   ` (3 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-24 18:06 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


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
 GCC target triplet|i686-pc-linux-gnu           |*-*-*
   Last reconfirmed|0000-00-00 00:00:00         |2003-07-24 18:06:32
               date|                            |


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-24 18:06 -------
It also happens on powerpc-apple-darwin6.6 on the branch:
[omni:~/src/gccPRs] pinskia% /Volumes/UFS_Partition/pinskia/objc-in/bin/gcc pr11661.m 
-lobjc pr11661.m:5: internal compiler error: tree check: expected identifier_node, have 
indirect_ref in add_instance_variable, at objc/objc-act.c:6601
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


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

* [Bug objc/11661] [objc-improvements-branch] ICE on function pointers as ivars
  2003-07-24 13:58 [Bug objc/11661] New: [objc-improvements-branch] function pointers as ivars d dot ayers at inode dot at
                   ` (4 preceding siblings ...)
  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
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-29 23:10 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


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-29 23:10 -------
Fixed see <http://gcc.gnu.org/ml/gcc-cvs/2003-07/msg01215.html>.


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

* [Bug objc/11661] [objc-improvements-branch] ICE on function pointers as ivars
  2003-07-24 13:58 [Bug objc/11661] New: [objc-improvements-branch] function pointers as ivars d dot ayers at inode dot at
                   ` (5 preceding siblings ...)
  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
  7 siblings, 0 replies; 9+ messages in thread
From: zlaski at apple dot com @ 2003-07-29 23:19 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



------- Additional Comments From zlaski at apple dot com  2003-07-29 23:19 -------
Fix committed to objc-improvements branch, along with a test case (gcc/testsuite/objc.dg/func-
ptr-1.m).  

(Not sure why the bug was moved to RESOLVED/FIXED _before_ I fixed it, though...)


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

* [Bug objc/11661] [objc-improvements-branch] ICE on function pointers as ivars
  2003-07-24 13:58 [Bug objc/11661] New: [objc-improvements-branch] function pointers as ivars d dot ayers at inode dot at
                   ` (6 preceding siblings ...)
  2003-07-29 23:19 ` zlaski at apple dot com
@ 2003-12-09 18:10 ` dhazeghi at yahoo dot com
  7 siblings, 0 replies; 9+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-12-09 18:10 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |3.4


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


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