This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/19505] [4.0 Regression] Java bytecode ICE in except.c remove_unreachable_regions
- From: "mckinlay at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jan 2005 15:12:27 -0000
- Subject: [Bug tree-optimization/19505] [4.0 Regression] Java bytecode ICE in except.c remove_unreachable_regions
- References: <20050118145002.19505.overholt@redhat.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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