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/16867] New: Inline array initializer miscompilation at -O


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


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