[Bug tree-optimization/19505] [4.0 Regression] Java bytecode ICE in except.c remove_unreachable_regions

mckinlay at redhat dot com gcc-bugzilla@gcc.gnu.org
Tue Jan 25 15:12:00 GMT 2005


------- Additional Comments From mckinlay at redhat dot com  2005-01-25 15:12 -------
Here's a test case for this bug, copied from PR18931. This will fail when
compiling from bytecode produced by Sun's javac, but not from bytecode produced
by gcj or ecj. 

public class PR19505 {

  public int getByte() 
  {
    return 1;
  }

  public void ls(String p) throws Exception{
    try{
      p.toString();

      int type=getByte();

      if(type!=100){
	throw new Exception("");
      }
      if(type==100) return;
      throw new Exception();
    }
    catch(Exception e){
      throw new Exception("");
    }
  }
}



-- 


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



More information about the Java-prs mailing list