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/12257] New: Inner classes with same name causes crash.


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: Inner classes with same name causes crash.
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: suckfish at ihug dot co dot nz
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: redhat-pc-linux

/* The following code causes gcj-3.3.1 to segfault.
 *
 * Two overloaded methods with the same name, each containing an inner
 * class with the same name.

$ cat /etc/redhat-release
Raw Hide 20030906

$ rpm -q gcc-java
gcc-java-3.3.1-3

$ gcj --version
gcj (GCC) 3.3.1 20030903 (Red Hat Linux 3.3.1-3)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ gcj -C E.java
E.java: In class `S.E':
E.java: In method `S.E.C()':
E.java:13: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.

 */

package S;

class E {
    void C ()
    {
	class I { };
	new I();
    }

    void C (final int J)
    {
 	class I { };
    }

}


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