This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/14581] New: gcj internal error: Segmentation fault involving switch to a final var
- From: "aph at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Mar 2004 15:29:23 -0000
- Subject: [Bug java/14581] New: gcj internal error: Segmentation fault involving switch to a final var
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Larry Morell (morell@cs.atu.edu)
>From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1)
Gecko/20030225
Description of problem:
Compiling:
class BugToken {
public void oops () {
final char eofSym;
switch (7) {
case eofSym : ;
}
}
}
yields:
javac BugToken.java
BugToken.java: In class `BugToken':
BugToken.java: In method `BugToken.oops()':
BugToken.java:4: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
Removing 'final' yields:
BugToken.java: In class `BugToken':
BugToken.java: In method `BugToken.oops()':
BugToken.java:5: Constant expression required.
case eofSym : ;
^
1 error
as hoped.
Version-Release number of selected component (if applicable):
gcc-3.2.2-5
How reproducible:
Always
Steps to Reproduce:
1. Using javac script supplied with Redhat 9 compile the program:class
BugToken {
public void oops () {
assinal char eofSym;
switch (7) {
case eofSym : ;
}
}
}
Actual Results: javac BugToken.java
BugToken.java: In class `BugToken':
BugToken.java: In method `BugToken.oops()':
BugToken.java:4: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
Expected Results: Should have compiled.
--
Summary: gcj internal error: Segmentation fault involving switch
to a final var
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code
Severity: normal
Priority: P2
Component: java
AssignedTo: aph at gcc dot gnu dot org
ReportedBy: aph at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14581