public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/14581] New: gcj  internal error: Segmentation fault involving switch to a final var
@ 2004-03-15 15:29 aph at gcc dot gnu dot org
  2004-03-15 15:38 ` [Bug java/14581] [3.3/3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: aph at gcc dot gnu dot org @ 2004-03-15 15:29 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug java/14581] [3.3/3.4/3.5 Regression] gcj  internal error: Segmentation fault involving switch to a final var
  2004-03-15 15:29 [Bug java/14581] New: gcj internal error: Segmentation fault involving switch to a final var aph at gcc dot gnu dot org
@ 2004-03-15 15:38 ` pinskia at gcc dot gnu dot org
  2004-03-15 15:41 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-15 15:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-15 15:38 -------
Confirmed, a regression from 3.0.4:
tin:~/src/gnu/gcctest>~/ia32_linux_gcc3_0/bin/gcj BugToken.java
BugToken.java: In class `BugToken':
BugToken.java: In method `BugToken.oops()':
BugToken.java:5: Constant expression required.
             case eofSym    : ;
             ^
1 error

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1
      Known to fail|                            |3.2.3 3.3.1 3.4.0 3.5.0
      Known to work|                            |3.0.4
   Last reconfirmed|0000-00-00 00:00:00         |2004-03-15 15:38:17
               date|                            |
            Summary|gcj  internal error:        |[3.3/3.4/3.5 Regression] gcj
                   |Segmentation fault involving|internal error: Segmentation
                   |switch to a final var       |fault involving switch to a
                   |                            |final var
   Target Milestone|---                         |3.3.4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14581


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug java/14581] [3.3/3.4/3.5 Regression] gcj  internal error: Segmentation fault involving switch to a final var
  2004-03-15 15:29 [Bug java/14581] New: gcj internal error: Segmentation fault involving switch to a final var aph at gcc dot gnu dot org
  2004-03-15 15:38 ` [Bug java/14581] [3.3/3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-03-15 15:41 ` pinskia at gcc dot gnu dot org
  2004-03-15 17:56 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-15 15:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-15 15:41 -------
Patch here: <http://gcc.gnu.org/ml/gcc/2004-03/msg00704.html>, looks like you posted it to the 
wrong lists.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14581


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug java/14581] [3.3/3.4/3.5 Regression] gcj  internal error: Segmentation fault involving switch to a final var
  2004-03-15 15:29 [Bug java/14581] New: gcj internal error: Segmentation fault involving switch to a final var aph at gcc dot gnu dot org
  2004-03-15 15:38 ` [Bug java/14581] [3.3/3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
  2004-03-15 15:41 ` pinskia at gcc dot gnu dot org
@ 2004-03-15 17:56 ` cvs-commit at gcc dot gnu dot org
  2004-03-15 17:58 ` aph at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-15 17:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-03-15 17:56 -------
Subject: Bug 14581

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	aph@gcc.gnu.org	2004-03-15 17:56:15

Modified files:
	gcc/java       : parse.y ChangeLog 

Log message:
	2004-03-15  Andrew Haley  <aph@redhat.com>
	
	PR java/14581
	* parse.y (java_complete_lhs): Check that final variable has an
	initializer.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/parse.y.diff?cvsroot=gcc&r1=1.472&r2=1.473
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&r1=1.1339&r2=1.1340



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14581


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug java/14581] [3.3/3.4/3.5 Regression] gcj  internal error: Segmentation fault involving switch to a final var
  2004-03-15 15:29 [Bug java/14581] New: gcj internal error: Segmentation fault involving switch to a final var aph at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-03-15 17:56 ` cvs-commit at gcc dot gnu dot org
@ 2004-03-15 17:58 ` aph at gcc dot gnu dot org
  2004-04-13 20:42 ` cvs-commit at gcc dot gnu dot org
  2004-04-22 17:59 ` cvs-commit at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: aph at gcc dot gnu dot org @ 2004-03-15 17:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From aph at gcc dot gnu dot org  2004-03-15 17:58 -------
.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|3.3.4                       |3.5.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14581


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug java/14581] [3.3/3.4/3.5 Regression] gcj  internal error: Segmentation fault involving switch to a final var
  2004-03-15 15:29 [Bug java/14581] New: gcj internal error: Segmentation fault involving switch to a final var aph at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-03-15 17:58 ` aph at gcc dot gnu dot org
@ 2004-04-13 20:42 ` cvs-commit at gcc dot gnu dot org
  2004-04-22 17:59 ` cvs-commit at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-04-13 20:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-04-13 20:27 -------
Subject: Bug 14581

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_3-rhl-branch
Changes by:	jakub@gcc.gnu.org	2004-04-13 20:27:15

Modified files:
	gcc/java       : ChangeLog parse.y 

Log message:
	PR java/14581
	* parse.y (java_complete_lhs): Check that final variable has an
	initializer.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-rhl-branch&r1=1.1093.2.40.2.7&r2=1.1093.2.40.2.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/parse.y.diff?cvsroot=gcc&only_with_tag=gcc-3_3-rhl-branch&r1=1.405.2.10.2.2&r2=1.405.2.10.2.3



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14581


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug java/14581] [3.3/3.4/3.5 Regression] gcj  internal error: Segmentation fault involving switch to a final var
  2004-03-15 15:29 [Bug java/14581] New: gcj internal error: Segmentation fault involving switch to a final var aph at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2004-04-13 20:42 ` cvs-commit at gcc dot gnu dot org
@ 2004-04-22 17:59 ` cvs-commit at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-04-22 17:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-04-22 17:41 -------
Subject: Bug 14581

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-rhl-branch
Changes by:	jakub@gcc.gnu.org	2004-04-22 17:40:58

Modified files:
	gcc/java       : ChangeLog parse.y 

Log message:
	2004-03-15  Andrew Haley  <aph@redhat.com>
	
	PR java/14581
	* parse.y (java_complete_lhs): Check that final variable has an
	initializer.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-rhl-branch&r1=1.1315.2.15&r2=1.1315.2.15.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/parse.y.diff?cvsroot=gcc&only_with_tag=gcc-3_4-rhl-branch&r1=1.464.4.2&r2=1.464.4.2.2.1



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14581


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-04-22 17:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-15 15:29 [Bug java/14581] New: gcj internal error: Segmentation fault involving switch to a final var aph at gcc dot gnu dot org
2004-03-15 15:38 ` [Bug java/14581] [3.3/3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
2004-03-15 15:41 ` pinskia at gcc dot gnu dot org
2004-03-15 17:56 ` cvs-commit at gcc dot gnu dot org
2004-03-15 17:58 ` aph at gcc dot gnu dot org
2004-04-13 20:42 ` cvs-commit at gcc dot gnu dot org
2004-04-22 17:59 ` cvs-commit 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).