This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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/17500] [4.0 Regression] Anonymous inner class compile freakout


------- Additional Comments From tromey at gcc dot gnu dot org  2004-09-24 19:44 -------
Reduced test case:

public class pr17500
{
  public Object m1 (final Object one)
  {
    return new Comparable()
      {
	public int compareTo(Object other)
	{
	  return one == other ? 0 : 1;
	}
      };
  }

  public Object m2 (final Object two)
  {
    return new Comparable()
      {
	public int compareTo(Object other)
	{
	  return two == other ? 0 : 1;
	}
      };
  }
}


The bug has to do with mutating data returned from
a cache -- oops.  I have a patch I'm testing.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-09-24 19:44:41
               date|                            |


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


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