public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/19471] ICE when anonymous class extends inner class of another class
2005-01-16 18:42 [Bug java/19471] New: ICE when anonymous class extends inner class of another class kon at iki dot fi
@ 2005-01-16 18:42 ` pinskia at gcc dot gnu dot org
2005-01-16 18:46 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-16 18:42 UTC (permalink / raw)
To: java-prs
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19471
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug java/19471] New: ICE when anonymous class extends inner class of another class
@ 2005-01-16 18:42 kon at iki dot fi
2005-01-16 18:42 ` [Bug java/19471] " pinskia at gcc dot gnu dot org
2005-01-16 18:46 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 4+ messages in thread
From: kon at iki dot fi @ 2005-01-16 18:42 UTC (permalink / raw)
To: java-prs
A GCC checked out from CVS on 2005-01-03 gets a segmentation fault
when compiling the following code. Jikes compiles it all right,
generating an <init> method that takes references to both First and
Second as parameters. Kaffe attempts the same but fails verification.
class First {
class Inner {}
};
class Second {
void fn(First first) {
first.new Inner() {
void crash() {}
};
}
}
$ gcj -v -C AnonExt.java
Using built-in specs.
Configured with: /home/kalle/src/FOREIGN-CVS/gcc/configure --prefix=/home/kalle
--exec-prefix=/home/kalle/i386-pc-linux-gnu --host=i386-pc-linux-gnu
--build=i386-pc-linux-gnu
Thread model: posix
gcc version 4.0.0 20050103 (experimental)
/home/kalle/stow/gcc/i386-pc-linux-gnu/bin/../libexec/gcc/i386-pc-linux-gnu/4.0.0/jc1 AnonExt.java -quiet -dumpbase AnonExt.java -auxbase-strip NONE -g1 -version
-fsyntax-only -femit-class-files -o /dev/null
GNU Java version 4.0.0 20050103 (experimental) (i386-pc-linux-gnu)
compiled by GNU C version 4.0.0 20041023 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Class path starts here:
./
/home/kalle/stow/gcc/i386-pc-linux-gnu/bin/../lib/gcc/../../../share/java/libgcj-4.0.0.jar/ (system) (zip)
AnonExt.java:10: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
If I remove the crash() function, then GCC succeeds in compiling the
source. I haven't checked the resulting bytecode, though.
--
Summary: ICE when anonymous class extends inner class of another
class
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kon at iki dot fi
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
GCC build triplet: i386-pc-linux-gnu
GCC host triplet: i386-pc-linux-gnu
GCC target triplet: i386-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19471
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug java/19471] ICE when anonymous class extends inner class of another class
2005-01-16 18:42 [Bug java/19471] New: ICE when anonymous class extends inner class of another class kon at iki dot fi
2005-01-16 18:42 ` [Bug java/19471] " pinskia at gcc dot gnu dot org
@ 2005-01-16 18:46 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-16 18:46 UTC (permalink / raw)
To: java-prs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-16 18:46 -------
Confirmed, here is the backtrace:
#0 0x00010008 in maybe_absorb_scoping_blocks () at /Users/pinskia/src/local/gcc/gcc/java/parse.y:
12555
#1 0x00041494 in java_parse () at /Users/pinskia/src/local/gcc/gcc/java/parse.y:1395
#2 0x00041494 in java_parse () at /Users/pinskia/src/local/gcc/gcc/java/parse.y:1395
--
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |18131
nThis| |
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-01-16 18:46:21
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19471
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug java/19471] ICE when anonymous class extends inner class of another class
[not found] <bug-19471-9521@http.gcc.gnu.org/bugzilla/>
@ 2007-01-09 20:49 ` tromey at gcc dot gnu dot org
0 siblings, 0 replies; 4+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-01-09 20:49 UTC (permalink / raw)
To: java-prs
------- Comment #2 from tromey at gcc dot gnu dot org 2007-01-09 20:46 -------
All gcj front end bugs have been fixed by the gcj-eclipse branch merge.
I'm mass-closing the affected PRs.
If you believe one of these was closed in error, please reopen it
with a note explaining why.
Thanks.
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19471
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-01-09 20:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-16 18:42 [Bug java/19471] New: ICE when anonymous class extends inner class of another class kon at iki dot fi
2005-01-16 18:42 ` [Bug java/19471] " pinskia at gcc dot gnu dot org
2005-01-16 18:46 ` pinskia at gcc dot gnu dot org
[not found] <bug-19471-9521@http.gcc.gnu.org/bugzilla/>
2007-01-09 20:49 ` 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).