public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/11075] New: ICE compiling cross-package inherited constants
@ 2003-06-03 8:42 robin.garner@crsrehab.gov.au
2003-06-03 8:48 ` [Bug java/11075] " robin.garner@crsrehab.gov.au
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: robin.garner@crsrehab.gov.au @ 2003-06-03 8:42 UTC (permalink / raw)
To: gcc-bugs
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
Summary: ICE compiling cross-package inherited constants
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: major
Priority: P4
Component: java
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: robin.garner@crsrehab.gov.au
CC: gcc-bugs@gcc.gnu.org
gcj crashes with an ICE when compiling the following code (3 files):
P/a.java:
package P;
class a { static final int A = 2; }
P/b.java:
package P;
public interface b { static int B = a.A; }
Q/c.java:
package Q;
import P.b;
class c {
static int x; { x = b.B; } // Virtually any reference to b.B works here
}
gcj -c P/a.java
gcj -c P/b.java
gcj -c Q/c.java
c.java:4: 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.
Configuration details follow:
$ gcc -v
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/specs
Configured with: ../gcc-3.3/configure
Thread model: posix
gcc version 3.3
$ uname -a
Linux r105l05.anu.edu.au 2.4.18 #2 SMP Thu Jul 11 13:10:05 EST 2002 i686 unknown
No intermediate files generated.
Also reproduced under gcc-3.2.2, and on an RH 7.1 system (i686) with 3.2.2.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug java/11075] ICE compiling cross-package inherited constants
2003-06-03 8:42 [Bug java/11075] New: ICE compiling cross-package inherited constants robin.garner@crsrehab.gov.au
@ 2003-06-03 8:48 ` robin.garner@crsrehab.gov.au
2003-06-03 12:21 ` pinskia@physics.uc.edu
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: robin.garner@crsrehab.gov.au @ 2003-06-03 8:48 UTC (permalink / raw)
To: gcc-bugs
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
------- Additional Comments From robin.garner@crsrehab.gov.au 2003-06-03 08:48 -------
Created an attachment (id=4150)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4150&action=view)
Test case
gzipped tar file: tar -cvzf test_11075.tgz test_11075
test_11075/
test_11075/test
test_11075/P/
test_11075/P/a.java
test_11075/P/b.java
test_11075/Q/
test_11075/Q/c.java
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug java/11075] ICE compiling cross-package inherited constants
2003-06-03 8:42 [Bug java/11075] New: ICE compiling cross-package inherited constants robin.garner@crsrehab.gov.au
2003-06-03 8:48 ` [Bug java/11075] " robin.garner@crsrehab.gov.au
@ 2003-06-03 12:21 ` pinskia@physics.uc.edu
2003-07-05 3:18 ` pinskia at physics dot uc dot edu
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia@physics.uc.edu @ 2003-06-03 12:21 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug java/11075] ICE compiling cross-package inherited constants
2003-06-03 8:42 [Bug java/11075] New: ICE compiling cross-package inherited constants robin.garner@crsrehab.gov.au
2003-06-03 8:48 ` [Bug java/11075] " robin.garner@crsrehab.gov.au
2003-06-03 12:21 ` pinskia@physics.uc.edu
@ 2003-07-05 3:18 ` pinskia at physics dot uc dot edu
2003-08-23 1:53 ` dhazeghi at yahoo dot com
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-05 3:18 UTC (permalink / raw)
To: gcc-bugs
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 at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2003-06-03 12:21:26 |2003-07-05 03:18:22
date| |
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-05 03:18 -------
Still happens on the mainline (20030704).
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug java/11075] ICE compiling cross-package inherited constants
2003-06-03 8:42 [Bug java/11075] New: ICE compiling cross-package inherited constants robin.garner@crsrehab.gov.au
` (2 preceding siblings ...)
2003-07-05 3:18 ` pinskia at physics dot uc dot edu
@ 2003-08-23 1:53 ` dhazeghi at yahoo dot com
2004-01-08 8:34 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-08-23 1:53 UTC (permalink / raw)
To: gcc-bugs
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
dhazeghi at yahoo dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4 |---
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug java/11075] ICE compiling cross-package inherited constants
2003-06-03 8:42 [Bug java/11075] New: ICE compiling cross-package inherited constants robin.garner@crsrehab.gov.au
` (3 preceding siblings ...)
2003-08-23 1:53 ` dhazeghi at yahoo dot com
@ 2004-01-08 8:34 ` pinskia at gcc dot gnu dot org
2004-05-22 3:31 ` [Bug java/11075] Compiling cross-package inherited constants are rejected pinskia at gcc dot gnu dot org
2004-05-24 13:06 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-08 8:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-08 08:34 -------
Related to bug 5135.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11075
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug java/11075] Compiling cross-package inherited constants are rejected
2003-06-03 8:42 [Bug java/11075] New: ICE compiling cross-package inherited constants robin.garner@crsrehab.gov.au
` (4 preceding siblings ...)
2004-01-08 8:34 ` pinskia at gcc dot gnu dot org
@ 2004-05-22 3:31 ` pinskia at gcc dot gnu dot org
2004-05-24 13:06 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-22 3:31 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-21 02:43 -------
The ICE is gone on the mainline but it is rejected unless you compile P/a.java and P/
b.java to *.class files.
./P/b.java:3: error: Can't access class `P.a'. Only public classes and interfaces in other
packages can be accessed.
public interface b { static int B = a.A; }
^
./P/b.java:3: error: Can't access package-private field `P.a.A' from `Q.c'.
public interface b { static int B = a.A; }
^
2 errors
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords|ice-on-valid-code |rejects-valid
Last reconfirmed|2003-08-03 21:12:54 |2004-05-21 02:43:07
date| |
Summary|ICE compiling cross-package |Compiling cross-package
|inherited constants |inherited constants are
| |rejected
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11075
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug java/11075] Compiling cross-package inherited constants are rejected
2003-06-03 8:42 [Bug java/11075] New: ICE compiling cross-package inherited constants robin.garner@crsrehab.gov.au
` (5 preceding siblings ...)
2004-05-22 3:31 ` [Bug java/11075] Compiling cross-package inherited constants are rejected pinskia at gcc dot gnu dot org
@ 2004-05-24 13:06 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-24 13:06 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.5.0 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11075
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2004-05-23 23:36 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-03 8:42 [Bug java/11075] New: ICE compiling cross-package inherited constants robin.garner@crsrehab.gov.au
2003-06-03 8:48 ` [Bug java/11075] " robin.garner@crsrehab.gov.au
2003-06-03 12:21 ` pinskia@physics.uc.edu
2003-07-05 3:18 ` pinskia at physics dot uc dot edu
2003-08-23 1:53 ` dhazeghi at yahoo dot com
2004-01-08 8:34 ` pinskia at gcc dot gnu dot org
2004-05-22 3:31 ` [Bug java/11075] Compiling cross-package inherited constants are rejected pinskia at gcc dot gnu dot org
2004-05-24 13:06 ` 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).