[Bug java/12307] New: Segfault using static field of imported class.
suckfish at ihug dot co dot nz
gcc-bugzilla@gcc.gnu.org
Wed Sep 17 02:15:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12307
Summary: Segfault using static field of imported class.
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: suckfish at ihug dot co dot nz
CC: gcc-bugs at gcc dot gnu dot org
Using a static field of a class imported from another package causes a segfault.
Also, the filename on the error message appears incorrect.
$ gcj -C Foo.java Bar.java
/tmp/ccCrUcxAjx: In class `B.Bar':
/tmp/ccCrUcxAjx: In method `B.Bar.Basic()':
/tmp/ccCrUcxAjx:9: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
$ gcj -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.3.1/specs
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.3.1/libgcj.spec
rename spec lib to liborig
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.3.1 20030903 (Red Hat Linux 3.3.1-4)
---------Bar.java------------
package B;
import A.Foo;
class Bar {
Foo Basic()
{
return Foo.V;
}
}
--------------Foo.java----------
package A;
class Foo
{
static final Foo V = null;
}
More information about the Gcc-bugs
mailing list