public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/13964] New: jc1 crash when compiling class with circular definitions
@ 2004-02-01 21:01 guilhem at kaffe dot org
  2004-02-01 21:25 ` [Bug java/13964] " pinskia at gcc dot gnu dot org
  2004-05-24  1:34 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: guilhem at kaffe dot org @ 2004-02-01 21:01 UTC (permalink / raw)
  To: gcc-bugs

If you try to compile these two interfaces using 'gcj -c V.java V2.java', you
will obtain a compiler crash. The crash does not happen when you first compile
using 'gcj -C' and then 'gcc -c'. So the presence of the class files should
prevent it as it may be showed by compiling the class using another compiler.

The crash is already present in gcc 3.3.1 and suspected in gcc 3.4.0 (though not
tested) because it's always present in gcc-cvs (head).

public interface V {
        int a = V2.b;
}

public interface V2 {
        int b = V.a;
}

-- 
           Summary: jc1 crash when compiling class with circular definitions
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: guilhem at kaffe dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug java/13964] jc1 crash when compiling class with circular definitions
  2004-02-01 21:01 [Bug java/13964] New: jc1 crash when compiling class with circular definitions guilhem at kaffe dot org
@ 2004-02-01 21:25 ` pinskia at gcc dot gnu dot org
  2004-05-24  1:34 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-01 21:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-02-01 21:25 -------
Confirmed, the problem is that GCJ is trying fold the final int:
#10 0x0806ffa4 in fold_constant_for_init (node=0x4004c460, context=0x400ca2f4) at parse.y:
16075#11 0x08070504 in maybe_build_class_init_for_field (decl=0x1, expr=0x400ca2f4) at 
parse.y:15945#12 0x0806ed60 in resolve_field_access (qual_wfl=0x4004c300, 
field_decl=0xbf7ee328, field_type=0x0) at parse.y:9488#13 0x0806ffbb in fold_constant_for_init 
(node=0x4004c300, context=0x400c29b4) at parse.y:16077#14 0x08070504 in 
maybe_build_class_init_for_field (decl=0x1, expr=0x400c29b4) at parse.y:15945#15 0x0806ed60 
in resolve_field_access (qual_wfl=0x4004c460, field_decl=0xbf7ee428, field_type=0x0) at parse.y:
9488#16 0x0806ffbb in fold_constant_for_init (node=0x4004c460, context=0x400ca2f4) at 
parse.y:16077#17 0x08070504 in maybe_build_class_init_for_field (decl=0x1, expr=0x400ca2f4) 
at parse.y:15945#18 0x0806ed60 in resolve_field_access (qual_wfl=0x4004c300, 
field_decl=0xbf7ee528, field_type=0x0) at parse.y:9488#19 0x0806ffbb in fold_constant_for_init 
(node=0x4004c300, context=0x400c29b4) at parse.y:16077

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-02-01 21:25:16
               date|                            |


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


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

* [Bug java/13964] jc1 crash when compiling class with circular definitions
  2004-02-01 21:01 [Bug java/13964] New: jc1 crash when compiling class with circular definitions guilhem at kaffe dot org
  2004-02-01 21:25 ` [Bug java/13964] " pinskia at gcc dot gnu dot org
@ 2004-05-24  1:34 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-24  1:34 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |3.5.0
   Last reconfirmed|2004-02-01 21:25:16         |2004-05-23 17:37:17
               date|                            |


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


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

end of thread, other threads:[~2004-05-23 17:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-01 21:01 [Bug java/13964] New: jc1 crash when compiling class with circular definitions guilhem at kaffe dot org
2004-02-01 21:25 ` [Bug java/13964] " pinskia at gcc dot gnu dot org
2004-05-24  1:34 ` pinskia 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).