The testcase is a tiny bytecode class. gcj 3.3 and 3.4 can compile it, and the
bcel verifier says it is valid. However, gcj 4.0.0 fails on it when
--indirect-dispatch is enabled:

$ /usr/lib/gcc-snapshot/bin/gcj --indirect-dispatch test/ACatch.class
test/main.nice: In class 'test.ACatch':
test/main.nice: In constructor '(test.Monotype)':
test/main.nice:1: error: verification failed: incompatible type on stack

-- 
           Summary: [4.0 regression] 'verification failed: incompatible type
                    on stack' with --indirect-dispatch
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bonniot at users dot sf dot net
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org
  GCC host triplet: i386-debian-linux-gnu


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

Reply via email to