[Bug java/12374] New: Segfault on "".x

suckfish at ihug dot co dot nz gcc-bugzilla@gcc.gnu.org
Tue Sep 23 01:48:00 GMT 2003


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

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

           Summary: Segfault on "".x
           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

/* Trying to access a field on a string gives a segfault.

$ gcj -fsyntax-only broken.java
broken.java: In class `X.broken':
broken.java: In method `X.broken.Foo()':
broken.java:18: 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 X;

class broken {
    char[] Foo()
    {
	return "".x;
    }
}



More information about the Gcc-bugs mailing list