This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/11075] ICE compiling cross-package inherited constants
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jun 2003 12:21:26 -0000
- Subject: [Bug java/11075] ICE compiling cross-package inherited constants
- References: <20030603084231.11075.robin.garner@crsrehab.gov.au>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11075
pinskia@physics.uc.edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-06-03 12:21:26
date| |
------- Additional Comments From pinskia@physics.uc.edu 2003-06-03 12:21 -------
Also fails on the mainline (20030602):
Program received signal SIGSEGV, Segmentation fault.
0x0806dbc6 in resolve_qualified_expression_name (wfl=0x4004c640, found_decl=
0x21, where_found=0xbffebe14, type_found=0xbffebe18) at parse.y:9692
9692 GET_TYPE_NAME (type),
(gdb) bt
#0 0x0806dbc6 in resolve_qualified_expression_name (wfl=0x4004c640, found_decl=
0x21, where_found=0xbffebe14, type_found=0xbffebe18) at parse.y:9692
#1 0x0806be39 in resolve_field_access (qual_wfl=0x21, field_decl=0xbffebe58,
field_type=0x0) at parse.y:9268
#2 0x0808baf3 in fold_constant_for_init (node=0x4004c640, context=0x40078d80) at
parse.y:15992
#3 0x0808b305 in maybe_build_class_init_for_field (decl=0x400b51b8, expr=
0x40078d80) at parse.y:15864
#4 0x0806c0fe in resolve_field_access (qual_wfl=0x21, field_decl=0x0, field_type=0x0)
at parse.y:9307
#5 0x0806b88b in resolve_expression_name (id=0x4004c4e0, orig=0x0) at
parse.y:9229
#6 0x080783ba in java_complete_lhs (node=0x4004c4e0) at parse.y:11808
#7 0x08074e82 in java_complete_tree (node=0x4004c4e0) at parse.y:11433
#8 0x08078b41 in java_complete_lhs (node=0x400550a8) at parse.y:12016
#9 0x08074e82 in java_complete_tree (node=0x400550a8) at parse.y:11433
#10 0x08075529 in java_complete_lhs (node=0x4004c560) at parse.y:11825
#11 0x08074e82 in java_complete_tree (node=0x4004c560) at parse.y:11433
#12 0x08078801 in java_complete_lhs (node=0x400b12c0) at parse.y:11552
#13 0x08074e82 in java_complete_tree (node=0x400b12c0) at parse.y:11433
#14 0x08078801 in java_complete_lhs (node=0x400b5160) at parse.y:11552
#15 0x08074e82 in java_complete_tree (node=0x400b5160) at parse.y:11433
#16 0x080671f7 in java_complete_expand_method (mdecl=0x400b3c3c) at
parse.y:7948
#17 0x080661cd in java_complete_expand_methods (class_decl=0x40078af8) at
parse.y:7615
#18 0x08065e2f in java_complete_expand_class (outer=0x40078af8) at parse.y:7579
#19 0x08065d5d in java_complete_expand_classes () at parse.y:7558
#20 0x0806aad9 in java_expand_classes () at parse.y:8878
#21 0x080be562 in java_parse_file (set_yydebug=0) at /home/gates/pinskia/src/gnu/gcc/
src/gcc/java/jcf-parse.c:1119
#22 0x08300c6a in compile_file () at /home/gates/pinskia/src/gnu/gcc/src/gcc/
toplev.c:2207
#23 0x08306da8 in do_compile () at /home/gates/pinskia/src/gnu/gcc/src/gcc/
toplev.c:5732
#24 0x08306e19 in toplev_main (argc=33, argv=0x0) at /home/gates/pinskia/src/gnu/
gcc/src/gcc/toplev.c:5761
#25 0x080d9a4b in main (argc=33, argv=0x21) at /home/gates/pinskia/src/gnu/gcc/src/
gcc/main.c:37
(gdb) shell gcj -v
Reading specs from /home/gates/pinskia/linux/lib/gcc-lib/i686-pc-linux-gnu/3.4/specs
Reading specs from /home/gates/pinskia/linux/lib/gcc-lib/i686-pc-linux-gnu/3.4/../../../
libgcj.spec
rename spec lib to liborig
Configured with: /home/gates/pinskia/src/gnu/gcc/src/configure --target=i686-pc-linux-
gnu --enable-__cxa_atexit --prefix=/home/gates/pinskia/linux --enable-threads=posix --
enable-shared
Thread model: posix
gcc version 3.4 20030602 (experimental)
(gdb) l
37 return toplev_main (argc, argv);
38 }
(gdb) l parse.y:9692
9687 if (not_accessible_p (TREE_TYPE (decl), decl, type, 0))
9688 {
9689 parse_error_context
9690 (qual_wfl, "Can't access %s field `%s.%s' from `%s'",
9691 java_accstring_lookup (get_access_flags_from_decl (decl)),
9692 GET_TYPE_NAME (type),
9693 IDENTIFIER_POINTER (DECL_NAME (decl)),
9694 IDENTIFIER_POINTER (DECL_NAME (TYPE_NAME (current_class))));
9695 return 1;
9696 }
(gdb) p type
$1 = 0x0
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.