public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/23300] New: DECL_FIELD_OFFSET == 0 versus build_field_ref
@ 2005-08-09 19:36 tromey at gcc dot gnu dot org
  2005-08-10 23:11 ` [Bug java/23300] " tromey at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-08-09 19:36 UTC (permalink / raw)
  To: java-prs

If I copy the current cvs classpath into the libjava build directory
and try to build, I get an ICE.

The problem occurs because of this code in build_field_ref:

      if (! flag_syntax_only
	  && (flag_indirect_dispatch
	      /* DECL_FIELD_OFFSET == 0 if we have no reference for
		 the field, perhaps because we couldn't find the class
		 in which the field is defined.  
		 FIXME: We should investigate this.  */
	      || DECL_FIELD_OFFSET (field_decl) == 0))

... flag_indirect_dispatch is false, but we have DECL_FIELD_OFFSET==0
for a 'this$0' field.  So, we wind up using the indirect dispatch code
anyway.  This causes a later crash (we build a bogus tree since the
otable is NULL).

I haven't investigated why DECL_FIELD_OFFSET can be 0 here.

-- 
           Summary: DECL_FIELD_OFFSET == 0 versus build_field_ref
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tromey at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


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


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

end of thread, other threads:[~2005-08-16 16:08 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-09 19:36 [Bug java/23300] New: DECL_FIELD_OFFSET == 0 versus build_field_ref tromey at gcc dot gnu dot org
2005-08-10 23:11 ` [Bug java/23300] " tromey at gcc dot gnu dot org
2005-08-10 23:22 ` pinskia at gcc dot gnu dot org
2005-08-11  1:58 ` pinskia at gcc dot gnu dot org
2005-08-11  2:01 ` pinskia at gcc dot gnu dot org
2005-08-11  2:39 ` pinskia at gcc dot gnu dot org
2005-08-11  2:59 ` pinskia at gcc dot gnu dot org
2005-08-11  3:06 ` pinskia at gcc dot gnu dot org
2005-08-11  3:37 ` pinskia at gcc dot gnu dot org
2005-08-11 11:38 ` rmathew at gcc dot gnu dot org
2005-08-15 19:38 ` tromey at gcc dot gnu dot org
2005-08-16 16:07 ` cvs-commit at gcc dot gnu dot org
2005-08-16 16:08 ` tromey at gcc dot gnu dot org

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