This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/13404] New: ICE when Missing identifier on catch clause


I forgot the variable name for the Exception object on my catch clause.
GCC issues the proper error message but seg faulted immediately after.
Adding the variable name like in "catch (Exception e) {}" solves the problem.
Please let me know if any extra info is needed.  It is 100% reproducible.

Compiler messages:

/home/fnasser/SRC/gcj-gcc-trunk/gcc/libjava/java/awt/List.java:682: error:
Missing identifier.
          catch (Exception) {}
                             ^
/home/fnasser/SRC/gcj-gcc-trunk/gcc/libjava/java/awt/List.java:682: 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.
make: *** [java/awt/List.class] Error 1



gcj -v

Configured with: /home/fnasser/SRC/gcj-gcc-trunk/gcc/configure
--enable-languages=java --prefix=/home/fnasser/INST/gcj-gcc-trunk/
--enable-java-awt=gtk
Thread model: posix
gcc version 3.4 20031202 (experimental)

-- 
           Summary: ICE when Missing identifier on catch clause
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fnasser at redhat dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]