This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug java/16867] New: Inline array initializer miscompilation at -O
- From: "mckinlay at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 3 Aug 2004 20:47:38 -0000
- Subject: [Bug java/16867] New: Inline array initializer miscompilation at -O
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following test case fails when compiled with mainline at -O. This is a
regression since 3.4.
public class ArrayInit
{
public static Object[] getFoo()
{
return new Object[] {"OK"};
}
public static void main(String[] args)
{
Object[] a = getFoo();
System.out.println(a[0]);
}
}
--
Summary: Inline array initializer miscompilation at -O
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mckinlay at redhat dot com
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=16867