This is the mail archive of the java-prs@gcc.gnu.org mailing list for the Java 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/17216] New: ICE in 3.5, error in 3.4.1 when compiling .class->.o


javac -target 1.1 stat.java
gcj -c stat.class

3.4.1: stat$B.java:0: error: non-static method 'stat$B.internal_new_GC(int)' 
overrides static method

3.5: stat.class:0: internal compiler error: in size_binop, at fold-const.c:1707


class stat {

        public static void main(String[] a) {
                stat s = new stat();
        }       

        class B extends A {
                public long internal_new_GC(int a) {
                        return 0L;
                }
        }

        public abstract class A implements I {

        }

        public interface I {
                public long internal_new_GC (int a);
        }


}

(might be related to PR 15888, but that one is compiling .java source, 
not .class)

-- 
           Summary: ICE in 3.5, error in 3.4.1  when compiling .class->.o
           Product: gcc
           Version: 3.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ovidr at users dot sourceforge dot net
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


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


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